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

Cannot fetch some albums #63

Open
ispmarin opened this issue Aug 10, 2022 · 0 comments
Open

Cannot fetch some albums #63

ispmarin opened this issue Aug 10, 2022 · 0 comments

Comments

@ispmarin
Copy link

After searching, I'm trying to play an album, and got the following error:

ago 10 09:13:10 kioto mopidy[3492]: ERROR    [HttpServer] mopidy_iris.handlers local variable 'data' referenced before assignment
ago 10 09:31:34 kioto mopidy[3492]: ERROR    [YTMusicBackend-3 (_actor_loop)] mopidy_ytmusic YTMusic failed getting tracks for album "MPREb_VDNszFcBTKC"
ago 10 09:31:34 kioto mopidy[3492]: Traceback (most recent call last):
ago 10 09:31:34 kioto mopidy[3492]:   File "/usr/local/lib/python3.10/dist-packages/mopidy_ytmusic/library.py", line 437, in lookup
ago 10 09:31:34 kioto mopidy[3492]:     tracks = self.albumToTracks(res, bId)
ago 10 09:31:34 kioto mopidy[3492]:   File "/usr/local/lib/python3.10/dist-packages/mopidy_ytmusic/library.py", line 904, in albumToTracks
ago 10 09:31:34 kioto mopidy[3492]:     songartists = [Artist(name=song["artists"])]
ago 10 09:31:34 kioto mopidy[3492]:   File "/usr/lib/python3/dist-packages/mopidy/models/immutable.py", line 159, in __call__
ago 10 09:31:34 kioto mopidy[3492]:     instance = super().__call__(*args, **kwargs)
ago 10 09:31:34 kioto mopidy[3492]:   File "/usr/lib/python3/dist-packages/mopidy/models/immutable.py", line 35, in __init__
ago 10 09:31:34 kioto mopidy[3492]:     self._set_field(key, value)
ago 10 09:31:34 kioto mopidy[3492]:   File "/usr/lib/python3/dist-packages/mopidy/models/immutable.py", line 188, in _set_field
ago 10 09:31:34 kioto mopidy[3492]:     object.__setattr__(self, name, value)
ago 10 09:31:34 kioto mopidy[3492]:   File "/usr/lib/python3/dist-packages/mopidy/models/fields.py", line 50, in __set__
ago 10 09:31:34 kioto mopidy[3492]:     value = self.validate(value)
ago 10 09:31:34 kioto mopidy[3492]:   File "/usr/lib/python3/dist-packages/mopidy/models/fields.py", line 34, in validate
ago 10 09:31:34 kioto mopidy[3492]:     raise TypeError(
ago 10 09:31:34 kioto mopidy[3492]: TypeError: Expected name to be a <class 'str'>, not [{'name': 'Bass Test', 'id': None}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant