Skip to content

[YouTube] Workaround SABR enforcement by using another player client#1508

Merged
TobiGr merged 4 commits into
TeamNewPipe:devfrom
AudricV:yt_workaround_sabr_enforcement
Jun 9, 2026
Merged

[YouTube] Workaround SABR enforcement by using another player client#1508
TobiGr merged 4 commits into
TeamNewPipe:devfrom
AudricV:yt_workaround_sabr_enforcement

Conversation

@AudricV

@AudricV AudricV commented Jun 8, 2026

Copy link
Copy Markdown
Member
  • I carefully read the contribution guidelines and agree to them.
  • I have tested the API against NewPipe.
  • I agree to create a pull request for NewPipe as soon as possible to make it compatible with the changed API. App PR will opened once a new extractor version will be released

This PR works around the SABR enforcement on the client we use by fetching another one not yet affected. Note that like the ANDROID_VR one it doesn't support made for kids videos (so YoutubeStreamExtractorDefaultTest.RatingsDisabled test is failing, as no audio and video only streams can be get), but it supports multiple audio tracks.

YoutubeStreamExtractorUnlistedTest is now failing too, this needs to be investigated later.

This PR also allows DASH and HLS manifests to be only available, as they can be the only source available for livestreams.

Supersedes #1498 and #1499, fixes TeamNewPipe/NewPipe#13320 and fixes TeamNewPipe/NewPipe#13556.

@AudricV AudricV added bug Issue or PR is related to a bug ASAP Issue needs to be fixed as soon as possible YouTube Service, https://www.youtube.com/ labels Jun 8, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

@Palloxin

Palloxin commented Jun 8, 2026

Copy link
Copy Markdown

Can we get a testing apk to try it out? (since doing so also helped to find that videos for kids dont work)

@AudricV AudricV added the multiservice Issues related to multiple services label Jun 8, 2026

@TobiGr TobiGr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks. We'll have to fix the broken stuff later.

@TobiGr TobiGr merged commit 389c728 into TeamNewPipe:dev Jun 9, 2026
2 of 3 checks passed
@absurdlylongusername

Copy link
Copy Markdown
Member

What makes this multiservice and not just youtube? @AudricV

@AudricV AudricV deleted the yt_workaround_sabr_enforcement branch June 9, 2026 21:38
@AudricV

AudricV commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

@absurdlylongusername The StreamInfo change makes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ASAP Issue needs to be fixed as soon as possible bug Issue or PR is related to a bug multiservice Issues related to multiple services YouTube Service, https://www.youtube.com/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot parse YouTube livestream [YouTube] Only MP4 360p/no separate audio tracks available (SABR enforcement)

4 participants