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

YT Music: Playlist/Album extraction broken #908

Closed
litetex opened this issue Aug 23, 2022 · 4 comments
Closed

YT Music: Playlist/Album extraction broken #908

litetex opened this issue Aug 23, 2022 · 4 comments
Labels
bug Issue is related to a bug youtube service, https://www.youtube.com/

Comments

@litetex
Copy link
Member

litetex commented Aug 23, 2022

So after I fixed every test in the extractor (#882) I noticed that YT seems to have changed the music extraction which results in some errors:
grafik

java.lang.AssertionError: Next page have errors
  * Could not get url
  * Could not get url
  * Could not get url
  * Could not get url 
	at org.schabi.newpipe.extractor.ExtractorAsserts.assertEmptyErrors(ExtractorAsserts.java:28)
	at org.schabi.newpipe.extractor.services.DefaultTests.defaultTestMoreItems(DefaultTests.java:128)
	at org.schabi.newpipe.extractor.services.DefaultListExtractorTest.testMoreRelatedItems(DefaultListExtractorTest.java:42)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727)
	... (remove junit internal stack)
	at java.lang.Thread.run(Thread.java:750)
Caused by: org.schabi.newpipe.extractor.exceptions.ParsingException: Could not get url
	at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeMusicSearchExtractor$3.getUrl(YoutubeMusicSearchExtractor.java:554)
	at org.schabi.newpipe.extractor.playlist.PlaylistInfoItemsCollector.extract(PlaylistInfoItemsCollector.java:17)
	at org.schabi.newpipe.extractor.MultiInfoItemsCollector.extract(MultiInfoItemsCollector.java:86)
	at org.schabi.newpipe.extractor.MultiInfoItemsCollector.extract(MultiInfoItemsCollector.java:48)
	at org.schabi.newpipe.extractor.InfoItemsCollector.commit(InfoItemsCollector.java:104)
	at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeMusicSearchExtractor.collectMusicStreamsFrom(YoutubeMusicSearchExtractor.java:501)
	at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeMusicSearchExtractor.getPage(YoutubeMusicSearchExtractor.java:275)
	at org.schabi.newpipe.extractor.services.DefaultTests.defaultTestMoreItems(DefaultTests.java:125)
	... 91 more
@litetex litetex added bug Issue is related to a bug youtube service, https://www.youtube.com/ labels Aug 23, 2022
@litetex
Copy link
Member Author

litetex commented Aug 23, 2022

After having a quick look I think the following was changed:

  • Sometimes I get a "black" screen because the playlist is not found?
    grafik
  • The menu is different for some items:
    grafik
  • If you click a video it directs to a browse url which is then redirected to a playlist url
    grafik

@AudricV
Copy link
Member

AudricV commented Aug 23, 2022

On the albums on which there are two items in the menu, the album could not be played too. The mix command provides the playlist (once you remove everything before the OLA[...] part), but the playlist is... private (when opened on the YouTube website, hence the 404 error when you try to access the playlist with the browse ID on YouTube Music)!

In my opinion there is nothing we can do about this, except changing the search query or waiting for YouTube to fix these issues.

@leolxmy
Copy link

leolxmy commented Nov 3, 2022

I also encountered a similar problem, I was able to extract the youtube music playback link, but the playback failed due to authentication issues.

@FireMasterK
Copy link
Member

Can this be closed?

They both work in Piped (and the tests pass now):
https://piped.video/results?search_query=test&filter=music_albums
https://piped.video/results?search_query=test&filter=music_playlists

@AudricV AudricV closed this as completed Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug youtube service, https://www.youtube.com/
Projects
None yet
Development

No branches or pull requests

4 participants