alfg / PlaylistParty

:tv: Play Spotify Playlists on Youtube.
https://playlistparty.alfg.dev/
21 stars 5 forks source link

Exclude cover songs #5

Closed alfg closed 9 years ago

alfg commented 9 years ago

YoutubeService should exclude cover songs in the search query:

https://developers.google.com/youtube/v3/docs/search/list

q string The q parameter specifies the query term to search for.

Your request can also use the Boolean NOT (-) and OR (|) operators to exclude videos or to find videos that are associated with one of several search terms. For example, to search for videos matching either "boating" or "sailing", set the q parameter value to boating|sailing. Similarly, to search for videos matching either "boating" or "sailing" but not "fishing", set the q parameter value to boating|sailing -fishing. Note that the pipe character must be URL-escaped when it is sent in your API request. The URL-escaped value for the pipe character is %7C.

alfg commented 9 years ago

https://github.com/alfg/spotlistTV/commit/996d262a202a0ffdc96dc039824798f59ca3905e