hnarayanan / shpotify

A command-line interface to Spotify.
https://harishnarayanan.org/projects/
2.02k stars 153 forks source link

Podcasts Don't Display in 'status' Correctly #158

Open alexander-the-alright opened 2 years ago

alexander-the-alright commented 2 years ago

Podcast names display as an album instead of an artist.

Screen Shot 2022-04-21 at 23 25 01

hnarayanan commented 2 years ago

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.)

davidem commented 2 years ago

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:

@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...)

hnarayanan commented 2 years ago

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

davidem commented 2 years ago

I'll see what i can do this weekend 😎