Severity
S3 - Medium (workaround exists)
Version / Commit
v2.13.0
What happened?
AppleMusicClient.gettoken() in musicdl/modules/utils/appleutils.py raises:
Exception: Token not found in index.js page
This appears to affect Apple Music playlist parsing (parseplaylist) and full-song downloads.
What did you expect?
AppleMusicClient should successfully retrieve the Apple Music developer token and continue playlist parsing and song downloads.
Steps to reproduce
- Run:
musicdl -m AppleMusicClient
-p "https://music.apple.com/cn/playlist/example/pl.xxxx"
-i '{"AppleMusicClient":{"default_parse_cookies":"media-user-token=<valid_token>"}}'
-
The command produces no output.
-
The exception is likely suppressed by with suppress(Exception) in musicdl.py.
Logs / Screenshots
Exception:
Exception: Token not found in index.js page
Environment
- OS: Windows 10 Pro for Workstations 22H2
- OS Build: 19045.6466
- Python: 3.13.9 (64-bit, MSC v.1944)
- musicdl: v2.13.0
- Platform: Windows x64
Checklist
Severity
S3 - Medium (workaround exists)
Version / Commit
v2.13.0
What happened?
AppleMusicClient.gettoken()inmusicdl/modules/utils/appleutils.pyraises:Exception: Token not found in index.js page
This appears to affect Apple Music playlist parsing (
parseplaylist) and full-song downloads.What did you expect?
AppleMusicClient should successfully retrieve the Apple Music developer token and continue playlist parsing and song downloads.
Steps to reproduce
musicdl -m AppleMusicClient
-p "https://music.apple.com/cn/playlist/example/pl.xxxx"
-i '{"AppleMusicClient":{"default_parse_cookies":"media-user-token=<valid_token>"}}'
The command produces no output.
The exception is likely suppressed by
with suppress(Exception)inmusicdl.py.Logs / Screenshots
Exception: Exception: Token not found in index.js pageEnvironment
Checklist