Skip to content

About

OrpheusDL Apple Music Tests

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

60 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Apple Music Module for OrpheusDL

This module enables downloading music from Apple Music using OrpheusDL. It bridges the functionality of gamdl to work within the OrpheusDL framework.

Features

  • 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

Prerequisites

1. OrpheusDL

My fork is needed to make Apple Music module work.

2. Apple Music Subscription

You need an active Apple Music subscription to download content.

3. FFmpeg

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 ffmpeg binary (or ffmpeg.exe on Windows) in the OrpheusDL folder (next to orpheus.py) — the module will find it automatically
  • Set the path in config/settings.json under global.advanced.ffmpeg_path
  • Install FFmpeg to your system PATH

Instructions for installing FFmpeg:

4. Authentication (cookies file OR media token)

You need to authenticate with your Apple Music subscription. Pick one of these:

Option A — Media token (simplest, no browser extension needed):

  1. Log in to Apple Music Web in your browser.
  2. Open Developer Tools (F12) → Application → Storage → Cookies → https://music.apple.com.
  3. Find the cookie named media-user-token and copy its value.
  4. Paste it into the Media User Token field in the Apple Music settings (or set media_user_token under modules.applemusic in config/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:

  1. Log in to Apple Music Web in your browser.
  2. Export cookies using a browser extension like Get cookies.txt LOCALLY.
  3. Save as cookies.txt in the /config folder of OrpheusDL.

macOS Users - Important SSL Setup!

Before using this module, you must install SSL certificates:

pip3 install --upgrade certifi

And run the "Install Certificates.command" found in your Python application folder.

Installation

  1. Make sure OrpheusDL is installed.
  2. Clone this repository (git clone https://github.com/bascurtiz/orpheusdl-applemusic) or download the ZIP file.
  3. Ensure all files from this repository are placed in the modules/applemusic folder.
  4. Install gamdl >= 3.8.5 via pip (required — it ships the compiled Rust decrypt/mux engine):
    pip install -U gamdl
  5. Run Orpheus to create settings.json:
    python orpheus.py
    (use python3 on macOS)

Usage

Downloading

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

Audio Quality

  • AAC: 256 kbps (Standard)
  • ALAC (Lossless): Up to 24-bit/48kHz
  • ALAC (Hi-Res): Up to 24-bit/192kHz
  • Dolby Atmos: Immersive spatial audio

Troubleshooting

SSL Certificate Errors (macOS)

Error: certificate verify failed: unable to get local issuer certificate Solution: Run the "Install Certificates.command" in your /Applications/Python X.X/ folder.

"media-user-token not found in cookies"

  • Re-export your cookies after ensuring you are logged in and have an active subscription.

Credits

All credit for the Apple Music download functionality goes to the gamdl project and its contributors.

About

OrpheusDL Apple Music Tests

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages