aw-watcher-spotify can't handle podcasts
itsCryne opened this issue · 0 comments
itsCryne commented
Upon playing a podcast in Spotify, aw-watcher-spotify will throw the following exception
Traceback (most recent call last):
File "/home/paddi/Programme/aw-watcher-spotify/aw_watcher_spotify/main.py", line 143, in main
track and last_track_data["uri"] != data_from_track(track)["uri"]
File "/home/paddi/Programme/aw-watcher-spotify/aw_watcher_spotify/main.py", line 31, in data_from_track
song_name = track["item"]["name"]
TypeError: 'NoneType' object is not subscriptable
and the activity will not be logged in AW.
I'm running AW with aw-watcher-spotify version 0.2.0 on Pop_OS! 20.04
I didn't yet take a look at the code/api due to the lack of time, but I just guess from the exception, that podcasts have a different API structure; if I find some time I'll look into it myself.