NewPipeExtractor icon indicating copy to clipboard operation
NewPipeExtractor copied to clipboard

Mix-Playlist extraction is broken in EU

Open litetex opened this issue 3 years ago • 3 comments

Currently the Mix-Playlist extraction is broken (looks like YT changed something). Test returns:

Could not get playlistData
org.schabi.newpipe.extractor.exceptions.ExtractionException: Could not get playlistData
	at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeMixPlaylistExtractor.onFetchPage(YoutubeMixPlaylistExtractor.java:100)
	at org.schabi.newpipe.extractor.Extractor.fetchPage(Extractor.java:60)
	at org.schabi.newpipe.extractor.services.youtube.YoutubeMixPlaylistExtractorTest$ChannelMix.setUp(YoutubeMixPlaylistExtractorTest.java:356)
	...

litetex avatar Mar 26 '22 19:03 litetex

Seems like you cannot get mixes anymore if you don't consent to tracking (CONSENT cookie with a value starting with YES+)...

AudricV avatar Mar 27 '22 19:03 AudricV

Not an issue in India, at least. Likely an EU thing. Maybe we should get someone from another non-EU country to confirm.

opusforlife2 avatar May 02 '22 19:05 opusforlife2

I see in https://github.com/TeamNewPipe/NewPipeExtractor/pull/600 we added a PENDING consent cookie to certain requests that seem to rely on it. While using a PENDING value against the mix playlist API doesn't seem to resolve this issue, using a YES value does work as @AudricV pointed out above. Would that be the right solution here? I'd be happy to create a PR to do that.

vludax avatar Jul 07 '22 22:07 vludax