Koodattu / twitch-song-request-desktop

A desktop application for Twitch song requests from Spotify and Youtube
MIT License
7 stars 1 forks source link

black list #15

Open madKULOLO opened 6 months ago

madKULOLO commented 6 months ago

it would be nice to be able to create a blacklist of tracks by title, artist, number of likes

Koodattu commented 6 months ago

This is a good idea, though it might need some thinking on the technical side of things. Such as how (and if) we can get the number of likes from youtube, it might not be too easy. I'm not sure if tracks on Spotify have likes per se like playlists do. Another thing is how we parse and match the track name, from Spotify the artist name and track name are always written the same way, but for Youtube users can format the title how they want and write the name of the artist and the song however they want (or maybe not even write the song name and artist name in the video title). Thanks for the idea though and I'll think about this more when I have the time!

madKULOLO commented 6 months ago

@Koodattu in theory, you can take the name from YouTube/spotify, and compare it with a list that can be added through the program, otherwise you can get banned for banwords

Koodattu commented 6 months ago

In theory yes, but we need some sort of fuzzy matching for the words. For example let's say you want to block songs from Rihanna, it's probably easy to just check if the youtube video title contains the word Rihanna. However some artist might have names like "Block & Crown" so people might write it into the title as "Block And Crown". Or maybe the name of the artist you want to block is some common word, like "PAIN", which might be included in the song name also. And I think there is no real standardized way to parse youtube video titles for artist and the song name. They might write "Rihanna - Umbrella" but they might also write "Rihanna Umbrella" or even without artist name like "Umbrella". Let's say for the last one, we are interested in blocking songs by Rihanna, but since the artist name was not included in the title, it will get added to the queue. While it's an easy issue to solve in theory, in practice it gets more difficult.

madKULOLO commented 6 months ago

@Koodattu regarding the blacklist and whitelist. this functionality is very interestingly implemented in Songify, where it is by the occurrence of the word that the block goes both by name and by artist (for Spotify)