! ! MP4Box must be installed first and confirm that MP4Box has been correctly added to the environment variables
Add functionality
- Call external MP4Box to automatically encapsulate ec3 into m4a
- Change the directory structure to artist namealbum name; Atmos download files are moved to AM-DL-Atmos downloads, and change the directory structure to artist namealbum name [Atmos]
- After the run is completed, the overall completion status is displayed.
- Automatically embed covers and LRC lyrics (media-user-token is required, see the instructions at the end for how to obtain it)
- For automatic building, you can go to the Actions page to download the latest automatic building version, and you can directly use
main.exe url - main supports check and can fill in the text address or API database.
- Add get-m3u8-from-device and change it to true and set the port
adb forward tcp:20020 tcp:20020 to get m3u8 from the simulator. - Folder and file support templates
- Support downloading singers
go run main.go https://music.apple.com/us/artist/taylor-swift/159260351 --all-album automatically selects all albums of the singer - The new wrapper mode can currently only be run on Linux. The decryption speed is super fast and can be decrypted in seconds.
-
limit-max supports limit length by default 200
This project only supports ALAC and Atmos
-
alac (audio-alac-stereo) -
ec3 (audio-atmos / audio-ec3)
Python project
If you want to download AAC, it is recommended to use AppleMusicDecrypt of WorldObservationLog.
AppleMusicDecrypt supports the following encodings
-
alac (audio-alac-stereo) -
ec3 (audio-atmos / audio-ec3) -
ac3 (audio-ac3) -
aac (audio-stereo) -
aac-binaural (audio-stereo-binaural) -
aac-downmix (audio-stereo-downmix)
Apple Music ALAC / Dolby Atmos Downloader
Original script by Sorrow. Modified by me to include some fixes and improvements.
How to use
- Create a virtual device on Android Studio with a image that doesn't have Google APIs.
- Install this version of Apple Music: https://www.apkmirror.com/apk/apple/apple-music/apple-music-3-6-0-beta-release/apple-music-3-6-0-beta -4-android-apk-download/. You will also need SAI to install it: https://f-droid.org/pt_BR/packages/com.aefyr.sai.fdroid/.
- Launch Apple Music and sign in to your account. Subscription required.
- Port forward 10020 TCP:
adb forward tcp:10020 tcp:10020 . - Start frida server.
- Start the frida agent:
frida -U -l agent.js -f com.apple.android.music . - Start downloading some albums:
go run main.go https://music.apple.com/us/album/whenever-you-need-somebody-2022-remaster/1624945511 . - Start downloading singles:
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 or go 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 .
Chinese tutorial - see method three for details
Downloading lyrics
- 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