You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Script crash after connecting via Bluetooth,
After stopping the Service and trying to start the script manually i get this:
Traceback (most recent call last):
File "/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py", line 398, in <module>
main()
File "/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py", line 240, in main
moode_meta = getMoodeMetadata(filename)
File "/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py", line 143, in getMoodeMetadata
metaDict['coverurl'] = urllib.parse.unquote(metaDict['coverurl'])
KeyError: 'coverurl'
After disconneting bluetooth i can start the script without problems.
i checked if the metafile would be updated and it is - i think there is a problem with this script.
The text was updated successfully, but these errors were encountered:
solution: i moved the line metaDict['coverurl'] = urllib.parse.unquote(metaDict['coverurl']) down to line 165 and did:
if metaDict['source'} == 'radio': metaDict['coverurl'] = urllib.parse.unquote(metaDict['coverurl'])
now it runs very well :)
my first time doing something in python, so i dont know if everythins is nice.
perhaps source library didn't work that way, but i dont use it. only Radio, Bluetooth, spotify and snapclient :)
Script crash after connecting via Bluetooth,
After stopping the Service and trying to start the script manually i get this:
After disconneting bluetooth i can start the script without problems.
i checked if the metafile would be updated and it is - i think there is a problem with this script.
The text was updated successfully, but these errors were encountered: