OzymandiasTheGreat / mopidy-ytmusic

Mopidy extension for playling music/managing playlists in Youtube Music
Apache License 2.0
80 stars 26 forks source link

UnboundLocalError in library.py #22

Open MrSurly opened 3 years ago

MrSurly commented 3 years ago

I see this when doing Browse --> Youtube Music --> similar to last played in Iris

Feb  8 19:53:24 controller mopidy[13822]: ERROR    [YTMusicBackend-3] mopidy_ytmusic YTMusic failed getting watch songs
Feb  8 19:53:24 controller mopidy[13822]: Traceback (most recent call last):
Feb  8 19:53:24 controller mopidy[13822]:   File "/usr/local/lib/python3.7/dist-packages/mopidy_ytmusic/library.py", line 184, in browse
Feb  8 19:53:24 controller mopidy[13822]:     if track_id:
Feb  8 19:53:24 controller mopidy[13822]: UnboundLocalError: local variable 'track_id' referenced before assignment
SR-Lut3t1um commented 3 years ago

It seems like this bug is not fixed in your Commit. 😕 New Error:

ERROR    2021-04-07 19:21:45,862 [38585:YTMusicBackend-3] mopidy_ytmusic
  YTMusic failed parsing album Zu dir (Akustik Version)
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/mopidy_ytmusic/library.py", line 995, in parseSearch
    name=result["artist"],
KeyError: 'artist'