Skip to content

KeyError: 'hlsUrl' #266

@louissgd

Description

@louissgd

I encountered a single link error, but it did not appear on any other links
https://music.apple.com/us/music-video/eyes-on-me-taking-chances-world-tour-the-concert/1514426655
Error info:
Error downloading "Eyes on Me (Taking Chances World Tour: The Concert)"
Traceback (most recent call last):
File "gamdl\gamdl\cli\cli.py", line 628, in main
await downloader.download(download_item)
File "gamdl\gamdl\downloader\downloader.py", line 387, in download
raise download_item.error
File "gamdl\gamdl\downloader\downloader_music_video.py", line 147, in get_download_item
return await self._get_download_item(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
)
^
File "gamdl\gamdl\downloader\downloader_music_video.py", line 189, in _get_download_item
download_item.stream_info = await self.interface.get_stream_info(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<4 lines>...
)
^
File "gamdl\gamdl\interface\interface_music_video.py", line 131, in get_stream_info
m3u8_master_url = self.get_m3u8_master_url_from_itunes_page_metadata(
itunes_page_metadata,
)
File "gamdl\gamdl\interface\interface_music_video.py", line 42, in get_m3u8_master_url_from_itunes_page_metadata
stream_url = itunes_page_metadata["offers"][0]["assets"][0]["hlsUrl"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'hlsUrl'
[INFO 22:00:46] Finished with 1 error(s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions