artemgordinskiy / Spotifree

An OS X app that automatically mutes ads on Spotify [DISCONTINUED]
http://spotifree.gordinskiy.com
MIT License
1.05k stars 70 forks source link

Podcasts are muted #104

Open harodlcummington opened 6 years ago

harodlcummington commented 6 years ago

Podcasts are being muted by Spotifree, presumably because they have a track number equal to 0. But I would guess there's also an easy way to check the audio type to make sure it's not a podcast before muting it. Or maybe there's an episode number field? Tried skimming through the API but not sure where to look. ~Maybe the "type" key in the Track?~

Have to be playing / on a song already and then switch to a podcast.

Looking at the Spotify URI for a podcast it looks like it's not treated the same as a track

podcast:

spotify:episode:<id>

versus a track:

spotify:track:<id>

But the web API doesn't seem to have endpoints for episodes. Based on this Github issue it looks like this functionality may not be supported yet. Although I don't know if that should prevent Spotifree from handling podcast episodes properly.

simonmeusel commented 6 years ago

It would also be possible to check for ads with spotify:ad.

But this project seems kinda dead. In my alternative I have implemented it with spotify:ad