KRTirtho / spotube

🎧 Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!
https://spotube.krtirtho.dev/
Other
29.81k stars 1.23k forks source link

Blacklist/whitelist for keywords to be avoided/preferred from source names (such as "live" or "video") #730

Open BloodRaven0 opened 1 year ago

BloodRaven0 commented 1 year ago

Is there an existing issue for this?

Pain

I often get lives or video streams that have bonus sound effects and non-music segments (that sponsorblock sometimes fails to skip), and that is because the default source for the songs is set to a live video.

Suggested solution

Let us have a blacklist for words that, if included in the source name, will be put at the bottom of the list (meaning, if there are no other sources, they will still be played) Additionally, we could also have a whitelist that does the opposite, puts sources that contain the keyword at the top of the list.

For example, with a default blacklist of "live" and "video", and a whitelist of "lyric" and "audio", the automatic source selection would work better in most cases, and it will be customizable for people who have different preferences.

KRTirtho commented 1 year ago

Does it makes sense to blacklist words?

What if a song has that word in it's title? It'll get ignored entirely causing the playback to break

Talking about whilelist it's already being done. Phrases like Official Audio or Official Lyrics Video or Official video etc are sorted to be first And also there's YouTube's own search algorithm which returns the most matching result at top. So I'm not sure if it will be really helpful in this way

Btw, Spotube had this feature in some old versions. It had worse results than current

BloodRaven0 commented 1 year ago

I see. The way I imagined it would work is it would put all results containing the word at the bottom, so if no alternative tracks are available that don't contain the word, they would still get played. It could create a problem that a different track from the same artist plays in its stead though, but it would be easily fixable by scrolling to the bottom.

Also may I ask that the whitelist feature be customizable? In particular I don't want "official video" to be whitelisted, because videos often have intros, outros and added sound effects that degrade the listening experience.