-
Notifications
You must be signed in to change notification settings - Fork 44
Description
For me all goes well until I get the error below:
KEY ERROR: 0.
Anyone has some pointers to overcome this?
Runing in a Raspberry pi 5. see screenshot below of the error.
[16:47:34] [ManzanaCore] INFO: Starting download process...
URL: https://music.apple.com/sa/album/taylor-swift-deluxe-edition/1440802681
[16:47:34] [ManzanaCore] INFO: Fetching API response...
[16:47:36] [ManzanaCore] INFO: Getting webplayback...
[16:47:36] [ManzanaCore] INFO: Parsing song uri...
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home/rrpi/docker/manzana/Manzana-Apple-Music-Downloader/manzana.py:83 in │
│ │
│ 80 │ print(LOGO) │
│ 81 │ args = main() │
│ 82 │ config.get_config() │
│ ❱ 83 │ run(args) │
│ 84 │
│ │
│ /home/rrpi/docker/manzana/Manzana-Apple-Music-Downloader/core/control.py:177 in run │
│ │
│ 174 │ │ │ │ │ │ │ logger.info(f'"{track["file"]}.mp4" is already exists! skipp │
│ 175 │ │ │ │ │ │ │ continue │
│ 176 │ │ │ │ │ │
│ ❱ 177 │ │ │ │ │ gc = aplm.get_content(track) │
│ 178 │ │ │ │ │ if not gc: continue │
│ 179 │ │ │ │ │ │
│ 180 │ │ │ │ │ if track["type"] == 1: │
│ │
│ /home/rrpi/docker/manzana/Manzana-Apple-Music-Downloader/core/api/aplm.py:460 in get_content │
│ │
│ 457 │ │ │ │ data["disccount"] = metadata.get("discCount") │
│ 458 │ │ │ │
│ 459 │ │ │ logger.info("Parsing song uri...") │
│ ❱ 460 │ │ │ stream = parse.aud_uri(assetUrl) │
│ 461 │ │ │ │
│ 462 │ │ │ pssh = stream["pssh"] │
│ 463 │ │ │ logger.info("Checking decrypt keys...") │
│ │
│ /home/rrpi/docker/manzana/Manzana-Apple-Music-Downloader/core/parse.py:51 in aud_uri │
│ │
│ 48 │ data = m3u8.load(uri) │
│ 49 │ return { │
│ 50 │ │ "type": "audio", │
│ ❱ 51 │ │ "uri": data.base_uri + data.segment_map[0].uri, │
│ 52 │ │ "pssh": data.keys[0].uri.split(',')[1] │
│ 53 │ } │
│ 54 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
KeyError: 0