-
Notifications
You must be signed in to change notification settings - Fork 77
Description
When I browse Youtube in the Mopidy library, the two available directories "My Youtube artists" and "My Youtube playlists" are empty and errors are logged.
Browsing "My Youtube artists" fails with the following errors being logged:
ERROR 2023-09-02 21:40:09,471 [31:YouTubeBackend-3 (_actor_loop)] mopidy_youtube
Channel.playlists list_channelplaylists error "Server returned HTTP 400: Bad Request.
Request contains an invalid argument."
ERROR 2023-09-02 21:40:09,471 [31:YouTubeBackend-3 (_actor_loop)] mopidy_youtube
Cannot load youtube:channel:artists
ERROR 2023-09-02 21:40:09,630 [31:YouTubeBackend-3 (_actor_loop)] mopidy_youtube
Channel.playlists list_channelplaylists error "'playlists'"
ERROR 2023-09-02 21:40:09,631 [31:Core-11 (_actor_loop)] mopidy.core.library
YouTubeBackend backend caused an exception.
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/mopidy/core/library.py", line 17, in _backend_error_handling
yield
File "/usr/lib/python3.10/site-packages/mopidy/core/library.py", line 114, in _browse
result = backend.library.browse(uri).get()
File "/usr/lib/python3.10/site-packages/pykka/_threading.py", line 55, in get
raise exc_value
File "/usr/lib/python3.10/site-packages/pykka/_actor.py", line 186, in _actor_loop
response = self._handle_receive(envelope.message)
File "/usr/lib/python3.10/site-packages/pykka/_actor.py", line 286, in _handle_receive
return callee(*message.args, **message.kwargs)
File "/usr/lib/python3.10/site-packages/cachetools/__init__.py", line 737, in wrapper
v = func(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/mopidy_youtube/backend.py", line 195, in browse
playlists = [
TypeError: 'NoneType' object is not iterable
Browsing "My Youtube playlists" fails with the following error being logged:
ERROR 2023-09-02 21:41:54,304 [31:YouTubeBackend-3 (_actor_loop)] mopidy_youtube
Cannot load youtube:browse
ERROR 2023-09-02 21:41:54,306 [31:YouTubeBackend-3 (_actor_loop)] mopidy_youtube
Cannot load youtube:browse
ERROR 2023-09-02 21:41:56,632 [31:YouTubeBackend-3 (_actor_loop)] mopidy_youtube
Channel.playlists list_channelplaylists error "'playlists'"
ERROR 2023-09-02 21:41:56,632 [31:YouTubeBackend-3 (_actor_loop)] mopidy_youtube
Cannot load youtube:channel:root
I enabled musicapi_enabled
, configured my channel_id
and the musicapi_cookiefile
as well as youtube_api_key
for which I also enabled api_enabled
.
I am using
- mopidy-youtube 3.7
- ytmusicapi 1.2.1
I would expect to see artists and playlists and no errors being logged.
Am I using mopidy-youtube the wrong way? Does it work for you?
This is not really a blocker since the Mopidy search works with Youtube but it would be nice to have that fixed - ideally I'd want to browse tracks I liked on Youtube.
(As opposed to the other issue I just created, this is not a new problem that appeared after a recent Youtube change but always existed in my setup.)