hnarayanan/shpotify

Podcasts Don't Display in 'status' Correctly

alexander-the-alright opened this issue · 4 comments

Podcast names display as an album instead of an artist.

Screen Shot 2022-04-21 at 23 25 01

Thank you for reporting this. I don’t use Spotify for podcasts and so didn’t notice.

Could you help us debug this by seeing if there is something different about podcasts in the response from the Spotify API? We could use this something to deal with podcasts differently in the script.

(It’s ok if you don’t know how to assist with this, I am mostly just thinking out loud and sketching out a solution for anyone willing and able to help.)

status makes several applescript calls, trying to get artist, album, track and position information. A podcast episode simply has no album, only artist and episode information.

For some reason applescript returns the wrong information when it comes to podcast episodes. It can be fixed in two ways:

  • Quick and dirty: simply check the URI first: if track > continue as normal, elif episode > different status output.
  • Futureproof: rewrite the status part using web API calls instead of applescript. For a few years people have declared applescript 'dead', but fortunately for us it is still around. 😎

@hnarayanan : which way do you prefer? As I agree this has to be fixed, as podcasts are here to stay (if it is up to Spotify that is...)

I prefer the quick and dirty approach. As otherwise we’re introducing a whole new level of complexity

I'll see what i can do this weekend 😎