KoljaWindeler / ytube_music_player

YouTube music player for homeassistant
326 stars 51 forks source link

Stopped working #310

Open dugdathug opened 4 months ago

dugdathug commented 4 months ago

Everything was working splendidly, then stopped recently.

Version 20240131.01

To Reproduce Steps to reproduce the behavior: The UI is fine, I see all of my music as expected, but when I Play anything - I hear the speaker 'ding' as though its about to play the music but nothing is played. The logs display :

Additional context 2024-03-02 00:39:44.801 ERROR (MainThread) [custom_components.ytube_music_player.media_player] Traceback (most recent call last): File "/config/custom_components/ytube_music_player/media_player.py", line 1538, 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 1538, 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 109, in get_playlist results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST_ITEM + ["musicPlaylistShelfRenderer"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 92, in nav raise err File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 86, in nav root = root[k]


KeyError: 'singleColumnBrowseResultsRenderer'
2024-03-02 00:39:44.801 ERROR (MainThread) [custom_components.ytube_music_player.media_player]
thanks, Kolja
2024-03-02 00:39:44.801 ERROR (MainThread) [custom_components.ytube_music_player.media_player] == == == == == == = ytube_music_player Integration Error == == == == == == == ==
2024-03-02 00:39:44.801 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [S] async_turn_off_media_player [E]
2024-03-02 00:39:44.803 WARNING (SyncWorker_4) [pychromecast.controllers] STOP command requested but no session is active.
2024-03-02 00:39:44.891 ERROR (MainThread) [custom_components.ytube_music_player.media_player] async_browse_media
2024-03-02 00:39:44.891 DEBUG (MainThread) [custom_components.ytube_music_player.const] - login without brand ID and credential at path /config/.storage/header_DugDaThug_YTM.json
2024-03-02 00:39:45.893 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api ... - no valid API, try to login ... YouTube Api initialized ok, version: 1.4.2 [E]
2024-03-02 00:39:45.893 DEBUG (MainThread) [custom_components.ytube_music_player.browse_media] - build_item_response for: cur_playlists
2024-03-02 00:39:45.893 DEBUG (MainThread) [custom_components.ytube_music_player.browse_media] - Calc / grab time: 6.6e-05 sec
danieldioszegi commented 4 months ago

Same for me as well.

GalchenkoAlexander commented 4 months ago

Have the same issue. My suggestion is it happened after HA Core update (2024.3.0).

KoljaWindeler commented 4 months ago

hmm i have a hard time to reproduce this .. especially because the login seems to work alright .. is this happening with all tracks?

dugdathug commented 4 months ago

hmm i have a hard time to reproduce this .. especially because the login seems to work alright .. is this happening with all tracks?

If you're referring to music tracks, then yes.

dugdathug commented 4 months ago

After upgrading today to: Core 2024.3.0 Supervisor 2024.03.0 Operating System 12.1 Frontend 20240306.0

All is working as it was before.

mortz74 commented 4 months ago

Same for me as well

KoljaWindeler commented 4 months ago

Strange .. ok, I'll close this. Please reopen if needed

austinbeam commented 4 months ago

This seems to be happening to me now. Appreciate any pointers and all the work on this.

File "/config/custom_components/ytube_music_player/media_player.py", line 1538, 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 1538, in <lambda>
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 109, in get_playlist
results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST_ITEM + ["musicPlaylistShelfRenderer"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 92, in nav
raise err
File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 86, in nav
root = root[k]
~~~~^^^
KeyError: 'singleColumnBrowseResultsRenderer'

Core 2024.3.1, also same issue after updating to 2024.3.3 Supervisor 2024.03.0 Operating System 12.1 Frontend 20240307.0

Taomyn commented 4 months ago

Today suddenly stopped as well - I can browse the libraries and things display, but whenever I try to play anything I get errors:

2024-03-22 08:21:11.289 INFO (SyncWorker_31) [pychromecast] Starting app CC1AD845
2024-03-22 08:21:11.289 INFO (SyncWorker_31) [pychromecast.controllers] Receiver:Launching app CC1AD845
2024-03-22 08:21:13.505 ERROR (MainThread) [custom_components.ytube_music_player.media_player] 
 == == == == == == = ytube_music_player Integration Error == == == == == == == == 
2024-03-22 08:21:13.505 ERROR (MainThread) [custom_components.ytube_music_player.media_player] unfortunately we hit an error, please open a ticket at
2024-03-22 08:21:13.505 ERROR (MainThread) [custom_components.ytube_music_player.media_player] https://github.com/KoljaWindeler/ytube_music_player/issues
2024-03-22 08:21:13.505 ERROR (MainThread) [custom_components.ytube_music_player.media_player] and paste the following output:
2024-03-22 08:21:13.505 ERROR (MainThread) [custom_components.ytube_music_player.media_player] Traceback (most recent call last):
  File "/config/custom_components/ytube_music_player/media_player.py", line 1538, 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 1538, 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 109, in get_playlist
    results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST_ITEM + ["musicPlaylistShelfRenderer"])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 92, in nav
    raise err
  File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 86, in nav
    root = root[k]
           ~~~~^^^
KeyError: 'singleColumnBrowseResultsRenderer'
2024-03-22 08:21:13.506 ERROR (MainThread) [custom_components.ytube_music_player.media_player] 
thanks, Kolja
2024-03-22 08:21:13.506 ERROR (MainThread) [custom_components.ytube_music_player.media_player]  == == == == == == = ytube_music_player Integration Error == == == == == == == == 
2024-03-22 08:21:13.507 WARNING (SyncWorker_7) [pychromecast.controllers] STOP command requested but no session is active.
2024-03-22 08:21:13.507 INFO (SyncWorker_7) [pychromecast] Quitting current app
2024-03-22 08:21:13.507 INFO (SyncWorker_7) [pychromecast.controllers] Receiver:Stopping current app 'CC1AD845'
2024-03-22 08:21:13.509 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall media_player.media_stop (c:01HSJGJ112K6XES8N6WT648BFX): entity_id=['media_player.bedroom_mini_home']>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 2335, in _run_service_call_catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 2356, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 905, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 836, in async_media_stop
    await self.hass.async_add_executor_job(self.media_stop)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 523, in media_stop
    media_controller.stop()
  File "/usr/local/lib/python3.12/site-packages/pychromecast/controllers/media.py", line 642, in stop
    response_handler.wait_response()
  File "/usr/local/lib/python3.12/site-packages/pychromecast/response_handler.py", line 54, in wait_response
    raise RequestFailed(self._request)
pychromecast.error.RequestFailed: Failed to execute stop.

home-assistant_ytube_music_player_2024-03-22T07-12-44.899Z.log

Core 2024.3.1 Supervisor 2024.03.0 Operating System 12.1 Frontend 20240307.0

wildoracle commented 4 months ago

Similar problem, here are my error messages:

This error originated from a custom integration.

Logger: custom_components.ytube_music_player.media_player
Source: custom_components/ytube_music_player/media_player.py:1485
integration: yTubeMediaPlayer (documentation, issues)
First occurred: 10:20:14 AM (11 occurrences)
Last logged: 11:37:16 AM

- Failed to get own(!) URL for track, further details below. Will not try YouTube method
This error originated from a custom integration.

Logger: custom_components.ytube_music_player.media_player
Source: custom_components/ytube_music_player/media_player.py:1486
integration: yTubeMediaPlayer (documentation, issues)
First occurred: 10:20:14 AM (11 occurrences)
Last logged: 11:37:16 AM

Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/connection.py", line 72, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/socket.py", line 963, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ socket.gaierror: [Errno -3] Try again During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn conn.connect() File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 363, in connect self.sock = conn = self._new_conn() ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f730e86e3c0>: Failed to establish a new connection: [Errno -3] Try again During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 799, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='rr4---sn-nx57ynsd.googlevideo.com', port=443): Max retries exceeded with url: /videoplayback?expire=1711151701&ei=9cX9ZY78IpKli9oP3tWVuAk&ip=66.165.15.196&id=o-AO8x-E9wbMy3b2s4Y-bOOPBBTspCLbfFAY5Q3lIigxcN&itag=141&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=9t&mm=31%2C29&mn=sn-nx57ynsd%2Csn-nx5s7nel&ms=au%2Crdu&mv=m&mvi=4&pl=20&ctier=A&pfa=5&gcr=us&initcwndbps=915000&hightc=yes&siu=1&spc=UWF9f74I4grfjWs8Hgf1lPqX7TYC2605ARSy8-iV3_mfPRfWCQ&vprv=1&svpuc=1&mime=audio%2Fmp4&ns=7OK8GdbJ3t2wRpTghc3CyDoQ&gir=yes&clen=6876682&dur=213.573&lmt=1634632889318781&mt=1711129741&fvip=2&keepalive=yes&c=WEB_REMIX&sefc=1&txp=5532434&n=mM2eLl942jTNXXAS27DZ&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cctier%2Cpfa%2Cgcr%2Chightc%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALClDIEwRAIgEVmmny64hNv-tc6u2o7CwdFeppIPyshOEeXAN3Lv1QcCIDmVTN-OOyCVJ7-2fQnb9tlalXs3cRB81x8NRw3X-oS1&sig=AJfQdSswRgIhAPzCgWLqFhyoRl2Y9_mmQrghN2siO8nBkN4bq-kzd44ZAiEA_jSooRc4FfwOQmDpW6fRA37eFlZEzHiSRHCkhw-N-d4= (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f730e86e3c0>: Failed to establish a new connection: [Errno -3] Try again')) 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 1470, in async_get_url r = await self.hass.async_add_executor_job(requests.head, _url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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/requests/api.py", line 100, in head return request("head", url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 519, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='rr4---sn-nx57ynsd.googlevideo.com', port=443): Max retries exceeded with url: /videoplayback?expire=1711151701&ei=9cX9ZY78IpKli9oP3tWVuAk&ip=66.165.15.196&id=o-AO8x-E9wbMy3b2s4Y-bOOPBBTspCLbfFAY5Q3lIigxcN&itag=141&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=9t&mm=31%2C29&mn=sn-nx57ynsd%2Csn-nx5s7nel&ms=au%2Crdu&mv=m&mvi=4&pl=20&ctier=A&pfa=5&gcr=us&initcwndbps=915000&hightc=yes&siu=1&spc=UWF9f74I4grfjWs8Hgf1lPqX7TYC2605ARSy8-iV3_mfPRfWCQ&vprv=1&svpuc=1&mime=audio%2Fmp4&ns=7OK8GdbJ3t2wRpTghc3CyDoQ&gir=yes&clen=6876682&dur=213.573&lmt=1634632889318781&mt=1711129741&fvip=2&keepalive=yes&c=WEB_REMIX&sefc=1&txp=5532434&n=mM2eLl942jTNXXAS27DZ&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cctier%2Cpfa%2Cgcr%2Chightc%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALClDIEwRAIgEVmmny64hNv-tc6u2o7CwdFeppIPyshOEeXAN3Lv1QcCIDmVTN-OOyCVJ7-2fQnb9tlalXs3cRB81x8NRw3X-oS1&sig=AJfQdSswRgIhAPzCgWLqFhyoRl2Y9_mmQrghN2siO8nBkN4bq-kzd44ZAiEA_jSooRc4FfwOQmDpW6fRA37eFlZEzHiSRHCkhw-N-d4= (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f730e86e3c0>: Failed to establish a new connection: [Errno -3] Try again'))
Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/connection.py", line 72, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/socket.py", line 963, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ socket.gaierror: [Errno -3] Try again During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn conn.connect() File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 363, in connect self.sock = conn = self._new_conn() ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7304360f80>: Failed to establish a new connection: [Errno -3] Try again During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 799, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='rr2---sn-nx57ynss.googlevideo.com', port=443): Max retries exceeded with url: /videoplayback?expire=1711152394&ei=qsj9Zdv7EKbOi9oPvcG76Ak&ip=66.165.15.196&id=o-AOaHXpls-vg5moZBIF8fwhozrEmdGzCNvnMMMvSqeUVJ&itag=141&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=AL&mm=31%2C26&mn=sn-nx57ynss%2Csn-o097znss&ms=au%2Conr&mv=m&mvi=2&pl=20&ctier=A&pfa=5&gcr=us&initcwndbps=1128750&hightc=yes&siu=1&spc=UWF9f3OaFnUiZNVIs0qHs7WT2rrZlJSEIHvCuLFLTgy5gxrJjA&vprv=1&svpuc=1&mime=audio%2Fmp4&ns=Pcro0qsrQX_WrBMqat9yNPgQ&gir=yes&clen=7298664&dur=226.666&lmt=1624208430702834&mt=1711130463&fvip=3&keepalive=yes&c=WEB_REMIX&sefc=1&txp=5432434&n=_bjjH8rVxnSuVv7utNz0&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cctier%2Cpfa%2Cgcr%2Chightc%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALClDIEwRgIhAKw7VNaGpoNrckuZ6pgLtp-qySjoCkRwGIScf-JHOaxeAiEA-fZ2AH6gr6B8IlA1_2ppGCYWQz8ye_cz3ijSMMxNpjo%3D&sig=AJfQdSswRgIhAMOSaUM_j34w1iwIDuz9PKVXOVOTeFc1MbbiU7TZlym8AiEA03HoCKkhH-KeK-jHkUxmIjzYTVBMLg6X9j3zFsygYUM= (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7304360f80>: Failed to establish a new connection: [Errno -3] Try again')) 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 1470, in async_get_url r = await self.hass.async_add_executor_job(requests.head, _url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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/requests/api.py", line 100, in head return request("head", url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 519, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='rr2---sn-nx57ynss.googlevideo.com', port=443): Max retries exceeded with url: /videoplayback?expire=1711152394&ei=qsj9Zdv7EKbOi9oPvcG76Ak&ip=66.165.15.196&id=o-AOaHXpls-vg5moZBIF8fwhozrEmdGzCNvnMMMvSqeUVJ&itag=141&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=AL&mm=31%2C26&mn=sn-nx57ynss%2Csn-o097znss&ms=au%2Conr&mv=m&mvi=2&pl=20&ctier=A&pfa=5&gcr=us&initcwndbps=1128750&hightc=yes&siu=1&spc=UWF9f3OaFnUiZNVIs0qHs7WT2rrZlJSEIHvCuLFLTgy5gxrJjA&vprv=1&svpuc=1&mime=audio%2Fmp4&ns=Pcro0qsrQX_WrBMqat9yNPgQ&gir=yes&clen=7298664&dur=226.666&lmt=1624208430702834&mt=1711130463&fvip=3&keepalive=yes&c=WEB_REMIX&sefc=1&txp=5432434&n=_bjjH8rVxnSuVv7utNz0&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cctier%2Cpfa%2Cgcr%2Chightc%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALClDIEwRgIhAKw7VNaGpoNrckuZ6pgLtp-qySjoCkRwGIScf-JHOaxeAiEA-fZ2AH6gr6B8IlA1_2ppGCYWQz8ye_cz3ijSMMxNpjo%3D&sig=AJfQdSswRgIhAMOSaUM_j34w1iwIDuz9PKVXOVOTeFc1MbbiU7TZlym8AiEA03HoCKkhH-KeK-jHkUxmIjzYTVBMLg6X9j3zFsygYUM= (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7304360f80>: Failed to establish a new connection: [Errno -3] Try again'))
Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/connection.py", line 72, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/socket.py", line 963, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ socket.gaierror: [Errno -3] Try again During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn conn.connect() File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 363, in connect self.sock = conn = self._new_conn() ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f73045610a0>: Failed to establish a new connection: [Errno -3] Try again During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 799, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='rr2---sn-nx57ynss.googlevideo.com', port=443): Max retries exceeded with url: /videoplayback?expire=1711153473&ei=4cz9ZamXDpTBsfIP2IWgmA8&ip=66.165.15.196&id=o-AOGttFhESBoAgByCeyP0Vc8sFTTl5bjCnGvms_DZcztn&itag=141&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=KK&mm=31%2C29&mn=sn-nx57ynss%2Csn-nx5s7nel&ms=au%2Crdu&mv=m&mvi=2&pl=20&ctier=A&pfa=5&gcr=us&initcwndbps=841250&hightc=yes&siu=1&spc=UWF9f1-7mQJFav4H7iIdB-lIsIBGb2GtlZXXOUQZIbLZnbAElQ&vprv=1&svpuc=1&mime=audio%2Fmp4&ns=A7Hhrsv3nOW-jYZjfIS4v_kQ&gir=yes&clen=7888776&dur=245.026&lmt=1602659075668484&mt=1711131189&fvip=2&keepalive=yes&c=WEB_REMIX&sefc=1&txp=1311222&n=C6f4zNNM-WaYfKI0OS-C&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cctier%2Cpfa%2Cgcr%2Chightc%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALClDIEwRgIhAIDxaU-o6H_rSUipD0UdZpBXQD37Dvx-2e10a-rT0CtCAiEAz2eEEBFbyoIZw4UwJdmmaM5YgrcX7QBZswkSlxDMeG8%3D&sig=AJfQdSswRAIgApvrYZtLBKD95zJcwtiluTue3LI28Wl1wIzaabwGcvECIFyfU3HrIH69bvMl5K_wWDZu83g3JivokrwhaJsdaglg (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f73045610a0>: Failed to establish a new connection: [Errno -3] Try again')) 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 1470, in async_get_url r = await self.hass.async_add_executor_job(requests.head, _url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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/requests/api.py", line 100, in head return request("head", url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 519, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='rr2---sn-nx57ynss.googlevideo.com', port=443): Max retries exceeded with url: /videoplayback?expire=1711153473&ei=4cz9ZamXDpTBsfIP2IWgmA8&ip=66.165.15.196&id=o-AOGttFhESBoAgByCeyP0Vc8sFTTl5bjCnGvms_DZcztn&itag=141&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=KK&mm=31%2C29&mn=sn-nx57ynss%2Csn-nx5s7nel&ms=au%2Crdu&mv=m&mvi=2&pl=20&ctier=A&pfa=5&gcr=us&initcwndbps=841250&hightc=yes&siu=1&spc=UWF9f1-7mQJFav4H7iIdB-lIsIBGb2GtlZXXOUQZIbLZnbAElQ&vprv=1&svpuc=1&mime=audio%2Fmp4&ns=A7Hhrsv3nOW-jYZjfIS4v_kQ&gir=yes&clen=7888776&dur=245.026&lmt=1602659075668484&mt=1711131189&fvip=2&keepalive=yes&c=WEB_REMIX&sefc=1&txp=1311222&n=C6f4zNNM-WaYfKI0OS-C&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cctier%2Cpfa%2Cgcr%2Chightc%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALClDIEwRgIhAIDxaU-o6H_rSUipD0UdZpBXQD37Dvx-2e10a-rT0CtCAiEAz2eEEBFbyoIZw4UwJdmmaM5YgrcX7QBZswkSlxDMeG8%3D&sig=AJfQdSswRAIgApvrYZtLBKD95zJcwtiluTue3LI28Wl1wIzaabwGcvECIFyfU3HrIH69bvMl5K_wWDZu83g3JivokrwhaJsdaglg (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f73045610a0>: Failed to establish a new connection: [Errno -3] Try again'))
Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/connection.py", line 72, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/socket.py", line 963, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ socket.gaierror: [Errno -3] Try again During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn conn.connect() File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 363, in connect self.sock = conn = self._new_conn() ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7304360a10>: Failed to establish a new connection: [Errno -3] Try again During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 799, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='rr2---sn-nx57ynss.googlevideo.com', port=443): Max retries exceeded with url: /videoplayback?expire=1711153946&ei=us79ZZuPEZOWsfIP2_uBMA&ip=66.165.15.196&id=o-AE-H1_RURVM9neAlXU90IKkUn-uRReRRgW9Uuaw8t_QU&itag=141&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=Xt&mm=31%2C26&mn=sn-nx57ynss%2Csn-o097znzd&ms=au%2Conr&mv=m&mvi=2&pl=20&ctier=A&pfa=5&gcr=us&initcwndbps=841250&hightc=yes&siu=1&spc=UWF9f4qpU9vzUbxTvqQkm1QRMHDRTF6jCuWnLp1fL0Jf-XGMpg&vprv=1&svpuc=1&mime=audio%2Fmp4&ns=XH9_U-pVkDpImR_texP1zy4Q&gir=yes&clen=8714613&dur=270.693&lmt=1577687648099288&mt=1711131189&fvip=2&keepalive=yes&c=WEB_REMIX&sefc=1&txp=5431432&n=JPl4wCBrG8u5643JL2yJ&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cctier%2Cpfa%2Cgcr%2Chightc%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALClDIEwRQIhANF6XwHmZQOtlYgWtiGe9q5RXM14KFx7jtAHNsSYYnejAiAplratta7Lx79OMd9YLrCd0G-TPyalZ-I0jMwexg7tjw%3D%3D&sig=AJfQdSswRQIgTRrHkSKBKBkmv8rp7w8RtwuAoxErBV8c1fYFF79JhasCIQDh3xOYAUIvsy86nIAchoJ7S4Yv1E1ymHy-0gXRc3oANw== (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7304360a10>: Failed to establish a new connection: [Errno -3] Try again')) 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 1470, in async_get_url r = await self.hass.async_add_executor_job(requests.head, _url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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/requests/api.py", line 100, in head return request("head", url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 519, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='rr2---sn-nx57ynss.googlevideo.com', port=443): Max retries exceeded with url: /videoplayback?expire=1711153946&ei=us79ZZuPEZOWsfIP2_uBMA&ip=66.165.15.196&id=o-AE-H1_RURVM9neAlXU90IKkUn-uRReRRgW9Uuaw8t_QU&itag=141&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=Xt&mm=31%2C26&mn=sn-nx57ynss%2Csn-o097znzd&ms=au%2Conr&mv=m&mvi=2&pl=20&ctier=A&pfa=5&gcr=us&initcwndbps=841250&hightc=yes&siu=1&spc=UWF9f4qpU9vzUbxTvqQkm1QRMHDRTF6jCuWnLp1fL0Jf-XGMpg&vprv=1&svpuc=1&mime=audio%2Fmp4&ns=XH9_U-pVkDpImR_texP1zy4Q&gir=yes&clen=8714613&dur=270.693&lmt=1577687648099288&mt=1711131189&fvip=2&keepalive=yes&c=WEB_REMIX&sefc=1&txp=5431432&n=JPl4wCBrG8u5643JL2yJ&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cctier%2Cpfa%2Cgcr%2Chightc%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALClDIEwRQIhANF6XwHmZQOtlYgWtiGe9q5RXM14KFx7jtAHNsSYYnejAiAplratta7Lx79OMd9YLrCd0G-TPyalZ-I0jMwexg7tjw%3D%3D&sig=AJfQdSswRQIgTRrHkSKBKBkmv8rp7w8RtwuAoxErBV8c1fYFF79JhasCIQDh3xOYAUIvsy86nIAchoJ7S4Yv1E1ymHy-0gXRc3oANw== (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7304360a10>: Failed to establish a new connection: [Errno -3] Try again'))
Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/connection.py", line 72, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/socket.py", line 963, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ socket.gaierror: [Errno -3] Try again During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn conn.connect() File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 363, in connect self.sock = conn = self._new_conn() ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f73044b4260>: Failed to establish a new connection: [Errno -3] Try again During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 799, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='rr4---sn-nx5s7n7y.googlevideo.com', port=443): Max retries exceeded with url: /videoplayback?expire=1711154231&ei=1s_9ZY-OOaGdsfIP6rynsAY&ip=66.165.15.196&id=o-AFFx4e1dHaxlc4SIYP3yNpYm36KaOCb6i8b8qzeHU7aa&itag=141&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=ZQ&mm=31%2C26&mn=sn-nx5s7n7y%2Csn-n4v7snl7&ms=au%2Conr&mv=m&mvi=4&pl=20&ctier=A&pfa=5&gcr=us&initcwndbps=796250&hightc=yes&siu=1&spc=UWF9f_-VhFOsAnbX9G2K-9HSPyw1T2XBlIcBAsU7Ph4JjCcnXQ&vprv=1&svpuc=1&mime=audio%2Fmp4&ns=L-aoMQ1Rr_DWfjBe2zrA6h0Q&gir=yes&clen=7942100&dur=246.666&lmt=1568039763946070&mt=1711132140&fvip=1&keepalive=yes&c=WEB_REMIX&sefc=1&txp=2311222&n=N3ipSTyP0leZ1n3opWoj&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cctier%2Cpfa%2Cgcr%2Chightc%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALClDIEwRQIgYIoc0y8PdW2DWK395dB3yNsMPhClKsPpEl7vIq7xtbgCIQDW4187po9XTG5uxeL0H9ZIv4lBg334ijU3XdWjGtxpNw%3D%3D&sig=AJfQdSswRAIgKhhCpT5KwiD5dI6PuvlSbBPFMzINpIPN1paM5lOSCN8CIFFN8NtYHb7lZKmNaFSwmC4rnI5hpJBxxuZxF2CY0uec (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f73044b4260>: Failed to establish a new connection: [Errno -3] Try again')) 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 1470, in async_get_url r = await self.hass.async_add_executor_job(requests.head, _url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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/requests/api.py", line 100, in head return request("head", url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 519, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='rr4---sn-nx5s7n7y.googlevideo.com', port=443): Max retries exceeded with url: /videoplayback?expire=1711154231&ei=1s_9ZY-OOaGdsfIP6rynsAY&ip=66.165.15.196&id=o-AFFx4e1dHaxlc4SIYP3yNpYm36KaOCb6i8b8qzeHU7aa&itag=141&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=ZQ&mm=31%2C26&mn=sn-nx5s7n7y%2Csn-n4v7snl7&ms=au%2Conr&mv=m&mvi=4&pl=20&ctier=A&pfa=5&gcr=us&initcwndbps=796250&hightc=yes&siu=1&spc=UWF9f_-VhFOsAnbX9G2K-9HSPyw1T2XBlIcBAsU7Ph4JjCcnXQ&vprv=1&svpuc=1&mime=audio%2Fmp4&ns=L-aoMQ1Rr_DWfjBe2zrA6h0Q&gir=yes&clen=7942100&dur=246.666&lmt=1568039763946070&mt=1711132140&fvip=1&keepalive=yes&c=WEB_REMIX&sefc=1&txp=2311222&n=N3ipSTyP0leZ1n3opWoj&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cctier%2Cpfa%2Cgcr%2Chightc%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALClDIEwRQIgYIoc0y8PdW2DWK395dB3yNsMPhClKsPpEl7vIq7xtbgCIQDW4187po9XTG5uxeL0H9ZIv4lBg334ijU3XdWjGtxpNw%3D%3D&sig=AJfQdSswRAIgKhhCpT5KwiD5dI6PuvlSbBPFMzINpIPN1paM5lOSCN8CIFFN8NtYHb7lZKmNaFSwmC4rnI5hpJBxxuZxF2CY0uec (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f73044b4260>: Failed to establish a new connection: [Errno -3] Try again'))
This error originated from a custom integration.

Logger: custom_components.ytube_music_player.media_player
Source: custom_components/ytube_music_player/media_player.py:265
integration: yTubeMediaPlayer (documentation, issues)
First occurred: 10:18:37 AM (3 occurrences)
Last logged: 10:23:48 AM

async_get_cipher failed
async_check_api failed
- decoded url return 403 status code, attempt 60/60
-
skizzabadoo commented 4 months ago

This error originated from a custom integration.

Logger: custom_components.ytube_music_player.media_player
Source: custom_components/ytube_music_player/media_player.py:2059
integration: yTubeMediaPlayer (documentation, issues)
First occurred: 11:36:17 AM (1 occurrences)
Last logged: 11:36:17 AM

Traceback (most recent call last): File "/config/custom_components/ytube_music_player/media_player.py", line 1538, 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 1538, in <lambda> 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 109, in get_playlist results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST_ITEM + ["musicPlaylistShelfRenderer"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 92, in nav raise err File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 86, in nav root = root[k] ~~~~^^^ KeyError: 'singleColumnBrowseResultsRenderer'
skizzabadoo commented 4 months ago
Logger: homeassistant.core
Source: core.py:2335
First occurred: 11:36:18 AM (1 occurrences)
Last logged: 11:36:18 AM

Error executing service: <ServiceCall media_player.media_stop (c:01HSRN3TY7BZA16N1X6CMW22E5): entity_id=['media_player.cora_s_room_speaker']>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 105, in wrapper
    return_value = func(self, *args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 574, in media_stop
    media_controller.stop()
  File "/usr/local/lib/python3.12/site-packages/pychromecast/controllers/media.py", line 642, in stop
    response_handler.wait_response()
  File "/usr/local/lib/python3.12/site-packages/pychromecast/response_handler.py", line 57, in wait_response
    raise RequestFailed(self._request)
pychromecast.error.RequestFailed: Failed to execute stop.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 2335, in _run_service_call_catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 2356, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 905, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 836, in async_media_stop
    await self.hass.async_add_executor_job(self.media_stop)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 107, in wrapper
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: CastMediaPlayerEntity.media_stop Failed: Failed to execute stop.
GalaxyGiant commented 4 months ago

I have the same problem. Attached is the debugging log.

2024-03-26 23:57:46.270 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [S] async_select_source(media_player.maegseu) 2024-03-26 23:57:46.271 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [S] async_update_remote_player(Input media_player.maegseu/ current media_player.maegseu) 2024-03-26 23:57:46.271 ERROR (MainThread) [custom_components.ytube_music_player.media_player] no change [E] 2024-03-26 23:57:46.271 ERROR (MainThread) [custom_components.ytube_music_player.media_player] - Choosing media_player.maegseu as player 2024-03-26 23:57:46.271 ERROR (MainThread) [custom_components.ytube_music_player.media_player] - untrack passed 2024-03-26 23:57:46.272 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [E] async_select_source 2024-03-26 23:57:47.276 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [S] play_media, media_type: playlist, media_id: PLn_Pl3CGIaYGMJTra9H9p9clHJhSObMKD 2024-03-26 23:57:47.276 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [S] async_prepare_play 2024-03-26 23:57:48.886 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api ... - no valid API, try to login ... YouTube Api initialized ok, version: 1.4.2 [E] 2024-03-26 23:57:48.886 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [S] async_update_remote_player(Input / current media_player.maegseu) [E] 2024-03-26 23:57:49.273 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_cipher 2024-03-26 23:57:49.273 ERROR (MainThread) [custom_components.ytube_music_player.media_player] - untrack resub 2024-03-26 23:57:50.852 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_cipher 2024-03-26 23:57:50.853 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [E] async_prepare_play 2024-03-26 23:57:51.979 ERROR (MainThread) [custom_components.ytube_music_player.media_player] get_playlist(playlistId=PLn_Pl3CGIaYGMJTra9H9p9clHJhSObMKD) 2024-03-26 23:57:51.979 ERROR (MainThread) [custom_components.ytube_music_player.media_player]

== == == == == == = ytube_music_player Integration Error == == == == == == == == 2024-03-26 23:57:51.979 ERROR (MainThread) [custom_components.ytube_music_player.media_player] unfortunately we hit an error, please open a ticket at 2024-03-26 23:57:51.979 ERROR (MainThread) [custom_components.ytube_music_player.media_player] https://github.com/KoljaWindeler/ytube_music_player/issues 2024-03-26 23:57:51.979 ERROR (MainThread) [custom_components.ytube_music_player.media_player] and paste the following output:

2024-03-26 23:57:51.980 ERROR (MainThread) [custom_components.ytube_music_player.media_player] Traceback (most recent call last): File "/config/custom_components/ytube_music_player/media_player.py", line 1538, 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 1538, 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 109, in get_playlist results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST_ITEM + ["musicPlaylistShelfRenderer"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 92, in nav raise err File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 86, in nav root = root[k]


KeyError: 'singleColumnBrowseResultsRenderer'

2024-03-26 23:57:51.980 ERROR (MainThread) [custom_components.ytube_music_player.media_player] 
thanks, Kolja
2024-03-26 23:57:51.980 ERROR (MainThread) [custom_components.ytube_music_player.media_player]  == == == == == == = ytube_music_player Integration Error == == == == == == == == 

2024-03-26 23:57:51.981 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [S] async_turn_off_media_player [E]
2024-03-26 23:57:51.986 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall media_player.turn_off (c:01HSXM91BD6CJ34V80H9VNZVDX): entity_id=['media_player.maegseu']>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 105, in wrapper
    return_value = func(self, *args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 546, in turn_off
    self._get_chromecast().quit_app()
  File "/usr/local/lib/python3.12/site-packages/pychromecast/__init__.py", line 463, in quit_app
    response_handler.wait_response()
  File "/usr/local/lib/python3.12/site-packages/pychromecast/response_handler.py", line 57, in wait_response
    raise RequestFailed(self._request)
pychromecast.error.RequestFailed: Failed to execute quit app.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 2335, in _run_service_call_catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 2356, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 905, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 796, in async_turn_off
    await self.hass.async_add_executor_job(self.turn_off)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 107, in wrapper
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: CastMediaPlayerEntity.turn_off Failed: Failed to execute quit app.
2024-03-26 23:57:51.989 WARNING (Thread-16) [pychromecast.socket_client] [맥스(192.168.0.42):8009] Error communicating with socket, resetting connection
2024-03-26 23:57:51.992 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall media_player.media_stop (c:01HSXM91BC6YTJQJRTTHVY8Y53): entity_id=['media_player.maegseu']>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 105, in wrapper
    return_value = func(self, *args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 574, in media_stop
    media_controller.stop()
  File "/usr/local/lib/python3.12/site-packages/pychromecast/controllers/media.py", line 642, in stop
    response_handler.wait_response()
  File "/usr/local/lib/python3.12/site-packages/pychromecast/response_handler.py", line 57, in wait_response
    raise RequestFailed(self._request)
pychromecast.error.RequestFailed: Failed to execute stop.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 2335, in _run_service_call_catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 2356, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 905, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 836, in async_media_stop
    await self.hass.async_add_executor_job(self.media_stop)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 107, in wrapper
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: CastMediaPlayerEntity.media_stop Failed: Failed to execute stop.
Hexis858 commented 3 months ago

Same errors for me.

Playing a single track works. Playing a library by 'media_content_id' fails.

I have the latest version of HA and a fresh install of the player 20240208.01

Core: 2024.3.3 Supervisor: 2024.03.0 Operating System: 12.1 Frontend: 20240307.0

(This issue seems to have started with HA 2024.3.0)

KoljaWindeler commented 3 months ago

Can you try to update ytmusicapi as shown here https://github.com/KoljaWindeler/ytube_music_player/issues/304#issuecomment-1986791667

This really is a annoying problem as it still works totally fine here

GalaxyGiant commented 3 months ago

@KoljaWindeler When I changed the manifest.json file using the code above, the error code as shown below appeared.

Logger: custom_components.ytube_music_player.media_player Source: custom_components/ytube_music_player/media_player.py:2059 integration: YouTube Music Player (documentation, issues) First occurred: pm 3:20:25 (1 occurrences) Last logged: pm 3:20:25

Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 102, in nav root = root[k] ~~~~^^^ KeyError: 'singleColumnBrowseResultsRenderer' 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 1538, 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 1538, 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 109, in get_playlist results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST_ITEM + ["musicPlaylistShelfRenderer"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/ytmusicapi/navigation.py", line 106, in nav raise type(e)(f"Unable to find '{k}' using path {items!r} on {root!r}, exception: {e}") KeyError: 'Unable to find \'singleColumnBrowseResultsRenderer\' using path [\'contents\', \'singleColumnBrowseResultsRenderer\', \'tabs\', 0, \'tabRenderer\', \'content\', \'sectionListRenderer\', \'contents\', 0, \'musicPlaylistShelfRenderer\'] on {\'twoColumnBrowseResultsRenderer\': {\'secondaryContents\': {\'sectionListRenderer\': {\'contents\': [{\'musicPlaylistShelfRenderer\': {\'playlistId\': \'PLn_Pl3CGIaYGMJTra9H9p9clHJhSObMKD\', \'contents\': [{\'musicResponsiveListItemRenderer\': {\'trackingParams\': \'CLwMEMn0AhgAIhMI--rpt-aThQMV15lWAR0g2AnA\', \'thumbnail\': {\'musicThumbnailRenderer\': {\'thumbnail\': {\'thumbnails\': [{\'url\': \'https://lh3.googleusercontent.com/-d5I1nv7x56NNuD3nbMZDRG874qNwua2usmDnVM35VGwHbLlLw8ozDMUrClz7f0lnSbG40L_dAF75EU8=w60-h60-l90-rj\', \'width\': 60, \'height\': 60}, {\'url\': \'https://lh3.googleusercontent.com/-d5I1nv7x56NNuD3nbMZDRG874qNwua2usmDnVM35VGwHbLlLw8ozDMUrClz7f0lnSbG40L_dAF75EU8=w120-h120-l90-rj\', \'width\': 120, \'height\': 120}]}, \'thumbnailCrop\': \'MUSIC_THUMBNAIL_CROP_UNSPECIFIED\', \'thumbnailScale\': \'MUSIC_THUMBNAIL_SCALE_ASPECT_FIT\', \'trackingParams\': \'CMsMEIS_AiITCPvq6bfmk4UDFdeZVgEdINgJwA==\'}}, \'overlay\': {\'musicItemThumbnailOverlayRenderer\': {\'background\': {\'verticalGradient\': {\'gradientLayerColors\': [\'3422552064\', \'3422552064\']}}, \'content\': {\'musicPlayButtonRenderer\': {\'playNavigationEndpoint\': {\'clickTrackingParams\': \'CMoMEMjeAiITCPvq6bfmk4UDFdeZVgEdINgJwA==\', \'watchEndpoint\': {\'videoId\': \'vBJVWOOsB4A\', \'playlistId\': \'PLn_Pl3CGIaYGMJTra9H9p9clHJhSObMKD\', \'playlistSetVideoId\': \'56B44F6D10557CC6\', \'loggingContext\': {\'vssLoggingContext\': {\'serializedContextData\': \'GiJQTG5fUGwzQ0dJYVlHTUpUcmE5SDlwOWNsSEpoU09iTUtE\'}}, \'watchEndpointMusicSupportedConfigs\': {\'watchEndpointMusicConfig\': {\'musicVideoType\': \'MUSIC_VIDEO_TYPE_ATV\'}}}}, \'trackingParams\': \'CMoMEMjeAiITCPvq6bfmk4UDFdeZVgEdINgJwA==\', \'playIcon\': {\'iconType\': \'PLAY_ARROW\'}, \'pauseIcon\': {\'iconType\': \'PAUSE\'}, \'iconColor\': 4294967295, \'backgroundColor\': 0, \'activeBackgroundColor\': 0, \'loadingIndicatorColor\': 4294901760, \'playingIcon\': {\'iconType\': \'VOLUME_UP\'}, \'iconLoadingColor\': 0, \'activeScaleFactor\': 1, \'buttonSize\': \'MUSIC_PLAY_BUTTON_SIZE_SMALL\', \'rippleTarget\': \'MUSIC_PLAY_BUTTON_RIPPLE_TARGET_SELF\', \'accessibilityPlayData\': {\'accessibilityData\': {\'label\': \'Play Fate (나는 아픈 건 딱 질색이니까) - (G)I-DLE - 2 minutes, 42 seconds\'}}, \'accessibilityPauseData\': {\'accessibilityData\': {\'label\': \'Pause Fate (나는 아픈 건 딱 질색이니까) - (G)I-DLE - 2 minutes, 42 seconds\'}}}}, \'contentPosition\': \'MUSIC_ITEM_THUMBNAIL_OVERLAY_CONTENT_POSITION_CENTERED\', \'displayStyle\': \'MUSIC_ITEM_THUMBNAIL_OVERLAY_DISPLAY_STYLE_PERSISTENT\'}}, \'flexColumns\': [{\'musicResponsiveListItemFlexColumnRenderer\': {\'text\': {\'runs\': [{\'text\': \'Fate (나는 아픈 건 딱 질색이니까)\', \'navigationEndpoint\': {\'clickTrackingParams\': \'CLwMEMn0AhgAIhMI--rpt-aThQMV15lWAR0g2AnA\', \'watchEndpoint\': {\'videoId\': \'vBJVWOOsB4A\', \'playlistId\': \'PLn_Pl3CGIaYGMJTra9H9p9clHJhSObMKD\', \'playerParams\': \'iAQB8AUB\', \'loggingContext\': {\'vssLoggingContext\': {\'serializedContextData\': \'GiJQTG5fUGwzQ0dJYVlHTUpUcmE5SDlwOWNsSEpoU09iTUtE\'}}, \'watchEndpointMusicSupportedConfigs\': {\'watchEndpointMusicConfig\': {\'musicVideoType\': \'MUSIC_VIDEO_TYPE_ATV\'}}}}}]}, \'displayPriority\': .....................................................................................

The error code is too long, so I will attach it as a file. error.txt

KoljaWindeler commented 3 months ago

@sigma67 so you have an idea what could be the cause?

GalaxyGiant commented 3 months ago

I don't know the code, but isn't it a problem because there are many channel profiles on Google accounts? 캡처3345

GalchenkoAlexander commented 3 months ago

For me It was resolved by full reinstall:

Now it works as before the issue (able to play playlist) core-2024.3.3

Taomyn commented 3 months ago

@GalchenkoAlexander thanks for the insight, unfortunately it wasn't quite enough at least for me. Trying to browse to media home or trying to stream a playlist both still fail.

I performed the same actions and after reconnecting to my account it still did not work - definitely the same version now. image

So I remembered the mention of brand-id so even though I have a brand account, I use the main account for YTMusic, I got the brand-id for it (at least I thought I did) and added it to the configuration. After this it all worked, but for some reason it shows my band channel not my main channel. Need to work this one out, but it's progress.

Taomyn commented 3 months ago

So it seems the failure is because I have a brand account associated with my main account, and not specifying one in the config causes the integration to fail. When I add the brand account's id it all starts working but it has no access to my YTMusic library so it's useless to me.

BTW each time I changed the id while testing this was logged:

2024-03-28 09:47:00.418 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'ytube_music_player' sets "data" directly to update a config entry. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to use async_update_entry instead at custom_components/ytube_music_player/__init__.py, line 45: entry.data = entry.options, please create a bug report at https://github.com/KoljaWindeler/ytube_music_player/issues

I was also not able to clear the brand-id in the config, when I cleared the field and saved the previous id remained, so I needed to hack the config file and set the value to "" and then restart HA.

GalaxyGiant commented 3 months ago

With reference to what @Taomyn mentioned, I set up the brand account as a representative and re-executed it, and the following error occurred.

Logger: custom_components.ytube_music_player.media_player Source: custom_components/ytube_music_player/media_player.py:1505 integration: YouTube Music Player (documentation, issues) First occurred: AM 10:36:38 (4 occurrences) Last logged: AM 10:36:39

Blocking calls must be done in the executor or a separate thread; Use await hass.async_add_executor_job(); at custom_components/ytube_music_player/media_player.py, line 1493: streams = streamingData.streams

GalaxyGiant commented 3 months ago

The account issue is correct. It's hard to explain, but when I deleted the channel that was set as the default and re-registered the integrated component, I selected the account (mail address) without registering the created private channel, and it played normally. I didn't test that part because I wasn't using the personal library that @Taomyn mentioned. There are no errors in the playlist that was released.

oll-zacharygoold commented 2 months ago

I am having the same issue, where I try and play something, it dings, and then stops immediately after.

image

I do not have a brand account, I have removed the integration and reinstalled but no luck. Anything else to try?

austinbeam commented 2 months ago

Everything suddenly started working for me a few weeks ago. Nothing that I could think of changed, but the plugin has been working (mostly) great ever since. I realize I'm not adding much that is helpful, but thought it might prompt others to check.

Symbiot78 commented 2 months ago

I am seeing the same issue. Setup the integration yesterday.