Filter out unsupported watch page only mixes from search results #6244
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Filter out unsupported watch page only mixes from search results
Pull Request Type
Related issue
Description
Watch page only mixes are not supported in FreeTube as they only exist on the YouTube watch page, that means they don't have their own playlist pages. Those unsupported mix playlists used to be filtered out automatically as they had their own
Mix
node which we didn't parse, but now YouTube has switched them to the sameLockupView
withcontent_type = 'PLAYLIST'
that they use for normal playlists.Some mixes such as the ones on
https://youtube.com/music
have actual playlist pages, they can be identified by the fact that their playlist IDs start withRDCL
, which this pull request explicitly checks for to make sure that those types don't get filtered out.Testing
Search for
music
and check that the mix playlist doesn't show up in the local API search results.Desktop