Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The playlist does not play. #352

Open
Murianwind opened this issue Jul 23, 2024 · 0 comments
Open

The playlist does not play. #352

Murianwind opened this issue Jul 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Murianwind
Copy link

Enable DEBUG Output
Please see: https://github.com/KoljaWindeler/ytube_music_player/#debug-information

Describe the bug
이 오류는 사용자 통합구성요소에서 발생했습니다.

로거: custom_components.ytube_music_player.media_player
소스: custom_components/ytube_music_player/media_player.py:2160
통합구성요소: YouTube Music Player (관련 문서, 문제)
처음 발생: 02:52:38 (9 발생)
마지막 로그인: 06:51:55

Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/ytmusicapi/helpers.py", line 64, in to_int int_value = locale.atoi(number_string) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/locale.py", line 327, in atoi return int(delocalize(string)) ^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: '' 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 1175, in async_update_playlists extra_info = await self.hass.async_add_executor_job(self._api.get_playlist, playlist['playlistId']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/mixins/playlists.py", line 111, in get_playlist return self._parse_new_playlist_format( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/mixins/playlists.py", line 215, in _parse_new_playlist_format song_count = to_int(song_count[0]) if len(song_count) > 1 else 0 ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/helpers.py", line 67, in to_int int_value = int(number_string) ^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/ytmusicapi/helpers.py", line 64, in to_int int_value = locale.atoi(number_string) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/locale.py", line 327, in atoi return int(delocalize(string)) ^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: '' 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 1647, in async_play_media playlist_info = await self.hass.async_add_executor_job(lambda: self._api.get_playlist(media_id, 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 1647, in playlist_info = await self.hass.async_add_executor_job(lambda: self._api.get_playlist(media_id, limit=self._trackLimit)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/mixins/playlists.py", line 111, in get_playlist return self._parse_new_playlist_format( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/mixins/playlists.py", line 215, in _parse_new_playlist_format song_count = to_int(song_count[0]) if len(song_count) > 1 else 0 ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/helpers.py", line 67, in to_int int_value = int(number_string) ^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''

Version
20240709.01

To Reproduce
When I select a playlist and start playing, it starts playing, but then the music stops playing.

Additional context
Add any other context about the problem here.

Thanks

@Murianwind Murianwind added the bug Something isn't working label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant