This module enables downloading music from Apple Music using OrpheusDL. It bridges the functionality of gamdl to work within the OrpheusDL framework.
- Download tracks, albums, playlists, and artist discographies
- Standard Quality: AAC 256kbps
- Lossless Audio: Apple Lossless (ALAC) up to 24-bit/48kHz
- Hi-Res Lossless: Apple Lossless (ALAC) up to 24-bit/192kHz
- Dolby Atmos: Spatial Audio support
- Search Apple Music catalog directly from OrpheusDL GUI
- Automatic metadata extraction and rich tagging
- Lyrics download support
- High-resolution cover art
My fork is needed to make Apple Music module work.
You need an active Apple Music subscription to download content.
FFmpeg is the only binary requirement for all formats (AAC, ALAC, and Atmos). The decryption functionality is now built-in, so only Docker & wrapper are required for Dolby Atmos / ALAC.
You can provide FFmpeg in any of these ways:
- Place the
ffmpegbinary (orffmpeg.exeon Windows) in the OrpheusDL folder (next toorpheus.py) — the module will find it automatically - Set the path in
config/settings.jsonunderglobal.advanced.ffmpeg_path - Install FFmpeg to your system PATH
Instructions for installing FFmpeg:
You need to authenticate with your Apple Music subscription. Pick one of these:
Option A — Media token (simplest, no browser extension needed):
- Log in to Apple Music Web in your browser.
- Open Developer Tools (F12) → Application → Storage → Cookies →
https://music.apple.com. - Find the cookie named
media-user-tokenand copy its value. - Paste it into the Media User Token field in the Apple Music settings (or set
media_user_tokenundermodules.applemusicinconfig/settings.json).
This enables AAC downloads, lyrics and videos with an active subscription — the same token the
original apple-music-downloader and gamdl's cookies path use.
Option B — Cookies file:
- Log in to Apple Music Web in your browser.
- Export cookies using a browser extension like Get cookies.txt LOCALLY.
- Save as
cookies.txtin the/configfolder of OrpheusDL.
Before using this module, you must install SSL certificates:
pip3 install --upgrade certifiAnd run the "Install Certificates.command" found in your Python application folder.
- Make sure OrpheusDL is installed.
- Clone this repository (
git clone https://github.com/bascurtiz/orpheusdl-applemusic) or download the ZIP file. - Ensure all files from this repository are placed in the
modules/applemusicfolder. - Install gamdl >= 3.8.5 via pip (required — it ships the compiled Rust decrypt/mux engine):
pip install -U gamdl - Run Orpheus to create settings.json:
python orpheus.py
(use python3 on macOS)
The module supports standard Apple Music URLs:
- Track:
python orpheus.py https://music.apple.com/us/song/trackname/id - Album:
python orpheus.py https://music.apple.com/us/album/albumname/id - Playlist:
python orpheus.py https://music.apple.com/us/playlist/playlistname/pl.hashstring - Artist:
python orpheus.py https://music.apple.com/us/artist/artistname/id
- AAC: 256 kbps (Standard)
- ALAC (Lossless): Up to 24-bit/48kHz
- ALAC (Hi-Res): Up to 24-bit/192kHz
- Dolby Atmos: Immersive spatial audio
Error: certificate verify failed: unable to get local issuer certificate
Solution: Run the "Install Certificates.command" in your /Applications/Python X.X/ folder.
- Re-export your cookies after ensuring you are logged in and have an active subscription.
All credit for the Apple Music download functionality goes to the gamdl project and its contributors.