English / 简体中文
- Supports inline covers and LRC lyrics(Demand
media-user-token
,See the instructions at the end for how to get it) - Added support for getting word-by-word and out-of-sync lyrics
- Support downloading singers
go run main.go https://music.apple.com/us/artist/taylor-swift/159260351
--all-album
Automatically select all albums of the artist - The download decryption part is replaced with Sendy McSenderson to decrypt while downloading, and solve the lack of memory when decrypting large files
- MV Download, installation requiredmp4decrypt
- Add interactive search with arrow-key navigation
go run main.go --search [song/album/artist] "search_term"
For acquisitionaac-lc
MV
lyrics
You must fill in the information with a subscriptionmedia-user-token
alac (audio-alac-stereo)
ec3 (audio-atmos / audio-ec3)
aac (audio-stereo)
aac-lc (audio-stereo)
aac-binaural (audio-stereo-binaural)
aac-downmix (audio-stereo-downmix)
MV
Original script by Sorrow. Modified by me to include some fixes and improvements.
- Make sure the decryption program wrapper is running
- Start downloading some albums:
go run main.go https://music.apple.com/us/album/whenever-you-need-somebody-2022-remaster/1624945511
. - Start downloading single song:
go run main.go --song https://music.apple.com/us/album/never-gonna-give-you-up-2022-remaster/1624945511?i=1624945512
orgo run main.go https://music.apple.com/us/song/you-move-me-2022-remaster/1624945520
. - Start downloading select:
go run main.go --select https://music.apple.com/us/album/whenever-you-need-somebody-2022-remaster/1624945511
input numbers separated by spaces. - Start downloading some playlists:
go run main.go https://music.apple.com/us/playlist/taylor-swift-essentials/pl.3950454ced8c45a3b0cc693c2a7db97b
orgo run main.go https://music.apple.com/us/playlist/hi-res-lossless-24-bit-192khz/pl.u-MDAWvpjt38370N
. - For dolby atmos:
go run main.go --atmos https://music.apple.com/us/album/1989-taylors-version-deluxe/1713845538
. - For aac:
go run main.go --aac https://music.apple.com/us/album/1989-taylors-version-deluxe/1713845538
. - For see quality:
go run main.go --debug https://music.apple.com/us/album/1989-taylors-version-deluxe/1713845538
.
Chinese tutorial - see Method 3 for details
- Open Apple Music and log in
- Open the Developer tools, Click
Application -> Storage -> Cookies -> https://music.apple.com
- Find the cookie named
media-user-token
and copy its value - Paste the cookie value obtained in step 3 into the config.yaml and save it
- Start the script as usual
- Open Apple Music and log in.
- Open the Developer tools, click
Network
tab. - Search a song which is available for translation and pronunciation lyrics (recommend K-Pop songs).
- Press Ctrl+R and let Developer tools sniff network data.
- Play a song and then click lyric button, sniff will show a data called
syllable-lyrics
. - Stop sniff (small red circles button on top left), then click
Fetch/XHR
tabs. - Click
syllable-lyrics
data, see requested URL. - Find this line
.../syllable-lyrics?l=<copy all the language value from here>&extend=ttmlLocalizations
. - Paste the language value obtained in step 8 into the config.yaml and save it.
- If don't need pronunciation, do this
...%5D=<remove this value>&extend...
on config.yaml and save it. - Start the script as usual.
Noted: These features are only in beta version right now.