Merge branch 'main' into main

This commit is contained in:
ZHAAREY
2025-07-16 20:45:45 +08:00
committed by GitHub
4 changed files with 59 additions and 11 deletions

46
README-CN.md Normal file
View File

@@ -0,0 +1,46 @@
[English](./README.md) / 简体中文
### !!必须先安装[MP4Box](https://gpac.io/downloads/gpac-nightly-builds/),并确认[MP4Box](https://gpac.io/downloads/gpac-nightly-builds/)已正确添加到环境变量
### 添加功能
1. 支持内嵌封面和LRC歌词需要`media-user-token`,获取方式看最后的说明)
2. 支持获取逐词与未同步歌词
3. 支持下载歌手 `go run main.go https://music.apple.com/us/artist/taylor-swift/159260351` `--all-album` 自动选择歌手的所有专辑
4. 下载解密部分更换为Sendy McSenderson的代码实现边下载边解密,解决大文件解密时内存不足
5. MV下载需要安装[mp4decrypt](https://www.bento4.com/downloads/)
### 特别感谢 `chocomint` 创建 `agent-arm64.js`
对于获取`aac-lc` `MV` `歌词` 必须填入有订阅的`media-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`
# Apple Music ALAC/杜比全景声下载器
原脚本由 Sorrow 编写。本人已修改,包含一些修复和改进。
## 使用方法
1. 确保解密程序 [wrapper](https://github.com/zhaarey/wrapper) 正在运行
2. 开始下载部分专辑:`go run main.go https://music.apple.com/us/album/whenever-you-need-somebody-2022-remaster/1624945511`
3. 开始下载单曲:`go run main.go --song https://music.apple.com/us/album/never-gonna-give-you-up-2022-remaster/1624945511?i=1624945512``go run main.go https://music.apple.com/us/song/you-move-me-2022-remaster/1624945520`
4. 开始下载所选曲目:`go run main.go --select https://music.apple.com/us/album/whenever-you-need-somebody-2022-remaster/1624945511` 输入以空格分隔的数字。
5. 开始下载部分播放列表:`go run main.go https://music.apple.com/us/playlist/taylor-swift-essentials/pl.3950454ced8c45a3b0cc693c2a7db97b``go run main.go https://music.apple.com/us/playlist/hi-res-lossless-24-bit-192khz/pl.u-MDAWvpjt38370N`
6. 对于杜比全景声 (Dolby Atmos)`go run main.go --atmos https://music.apple.com/us/album/1989-taylors-version-deluxe/1713845538`
7. 对于 AAC (AAC)`go run main.go --aac https://music.apple.com/us/album/1989-taylors-version-deluxe/1713845538`
8. 要查看音质:`go run main.go --debug https://music.apple.com/us/album/1989-taylors-version-deluxe/1713845538`
[中文教程-详见方法三](https://telegra.ph/Apple-Music-Alac高解析度无损音乐下载教程-04-02-2)
## 下载歌词
1. 打开 [Apple Music](https://music.apple.com) 并登录
2. 打开开发者工具,点击“应用程序 -> 存储 -> Cookies -> https://music.apple.com”
3. 找到名为“media-user-token”的 Cookie 并复制其值
4. 将步骤 3 中获取的 Cookie 值粘贴到 config.yaml 文件中并保存
5. 正常启动脚本

View File

@@ -1,16 +1,18 @@
### !!必须先安装[MP4Box](https://gpac.io/downloads/gpac-nightly-builds/),并确认[MP4Box](https://gpac.io/downloads/gpac-nightly-builds/)已正确添加到环境变量 English / [简体中文](./README-CN.md)
### 添加功能 ### Must be installed first [MP4Box](https://gpac.io/downloads/gpac-nightly-builds/)And confirm [MP4Box](https://gpac.io/downloads/gpac-nightly-builds/) Correctly added to environment variables
1. 支持内嵌封面和LRC歌词需要`media-user-token`,获取方式看最后的说明) ### Add features
2. 支持获取逐词与未同步歌词
3. 支持下载歌手 `go run main.go https://music.apple.com/us/artist/taylor-swift/159260351` `--all-album` 自动选择歌手的所有专辑 1. Supports inline covers and LRC lyricsDemand`media-user-token`See the instructions at the end for how to get it
4. 下载解密部分更换为Sendy McSenderson的代码实现边下载边解密,解决大文件解密时内存不足 2. Added support for getting word-by-word and out-of-sync lyrics
5. MV下载需要安装[mp4decrypt](https://www.bento4.com/downloads/) 3. 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
4. The download decryption part is replaced with Sendy McSenderson to decrypt while downloading, and solve the lack of memory when decrypting large files
5. MV Download, installation required[mp4decrypt](https://www.bento4.com/downloads/)
### Special thanks to `chocomint` for creating `agent-arm64.js` ### Special thanks to `chocomint` for creating `agent-arm64.js`
对于获取`aac-lc` `MV` `歌词` 必须填入有订阅的`media-user-token` For acquisition`aac-lc` `MV` `lyrics` You must fill in the information with a subscription`media-user-token`
- `alac (audio-alac-stereo)` - `alac (audio-alac-stereo)`
- `ec3 (audio-atmos / audio-ec3)` - `ec3 (audio-atmos / audio-ec3)`
@@ -34,7 +36,7 @@ Original script by Sorrow. Modified by me to include some fixes and improvements
7. For aac: `go run main.go --aac https://music.apple.com/us/album/1989-taylors-version-deluxe/1713845538`. 7. For aac: `go run main.go --aac https://music.apple.com/us/album/1989-taylors-version-deluxe/1713845538`.
8. For see quality: `go run main.go --debug https://music.apple.com/us/album/1989-taylors-version-deluxe/1713845538`. 8. For see quality: `go run main.go --debug https://music.apple.com/us/album/1989-taylors-version-deluxe/1713845538`.
[中文教程-详见方法三](https://telegra.ph/Apple-Music-Alac高解析度无损音乐下载教程-04-02-2) [Chinese tutorial - see Method 3 for details](https://telegra.ph/Apple-Music-Alac高解析度无损音乐下载教程-04-02-2)
## Downloading lyrics ## Downloading lyrics