KoljaWindeler / ytube_music_player

YouTube music player for homeassistant
346 stars 53 forks source link

ytube music player error (bug) #355

Open jschroeder624 opened 3 months ago

jschroeder624 commented 3 months ago

Enable DEBUG Output Output:

Logger: custom_components.ytube_music_player.media_player Source: custom_components/ytube_music_player/media_player.py:2225 integration: yTubeMediaPlayer (documentation, issues) First occurred: 9:02:26 AM (1 occurrences) Last logged: 9:02:26 AM

Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 107, in nav root = root[k] ~~~~^^^ KeyError: 'runs' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/config/custom_components/ytube_music_player/media_player.py", line 1223, in async_update_playlists self._playlists = await self.hass.async_add_executor_job(lambda: self._api.get_library_playlists(limit=self._trackLimit)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/ytube_music_player/media_player.py", line 1223, in self._playlists = await self.hass.async_add_executor_job(lambda: self._api.get_library_playlists(limit=self._trackLimit)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/mixins/library.py", line 36, in get_library_playlists playlists = parse_content_list(results["items"][1:], parse_playlist) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/parsers/browsing.py", line 52, in parse_content_list contents.append(parse_func(result[key])) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/parsers/browsing.py", line 134, in parse_playlist "title": nav(data, TITLE_TEXT), ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 111, in nav raise type(e)(f"Unable to find '{k}' using path {items!r} on {root!r}, exception: {e}") KeyError: "Unable to find 'runs' using path ['title', 'runs', 0, 'text'] on {}, exception: 'runs'"

Describe the bug I do not know what the bug is, I saw this in the logs and was instructed to submit a ticket - from Kolja. Thanks for your work on this integration!! It's awesome.

Version 20240810.01

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Additional context Add any other context about the problem here.

Thanks