Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YouTube] Now music mixes can be treated as normal mixes #1013

Merged
merged 2 commits into from
Jan 29, 2023

Conversation

Stypox
Copy link
Member

@Stypox Stypox commented Jan 15, 2023

The fix was simpler than expected. A while ago, apparently, YouTube treated music playlists as just special playlists, and so a normal YouTubePlaylistExtractor was used to fetch them. Now, instead, when using that method you get "This playlist type is unviewable.". The solution was just to remove the distinction between other mixes and music mixes: now they are all treated the same way using YoutubeMixPlaylistExtractor. By taking a look at the browser's network tab I could confirm this is the right approach.

The first commit just changes 4 lines of code. The second one adds a mix test along with mocks.

Fixes TeamNewPipe/NewPipe#9536

Testing APK: app-debug.zip

Using a playlist extractor on them would result in "Unviewable playlist" errors
@TobiGr TobiGr added the youtube service, https://www.youtube.com/ label Jan 24, 2023
Copy link
Contributor

@TobiGr TobiGr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Stypox Stypox merged commit 9aca710 into TeamNewPipe:dev Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
youtube service, https://www.youtube.com/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opening YT Music mix/radio gives "content unavailable"
2 participants