Skip to content

Conversation

coletdjnz
Copy link
Member

@coletdjnz coletdjnz commented Dec 23, 2024

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

Fix for one of the issues in #11868

It appears YouTube is rolling out what we presume is a PO Token requirement on iOS. It has the same characteristics as android: either immediate fail or fails part way through the download, and no StreamProtectionStatus is provided in the UMP/SABR responses.

iOS HLS formats appear to still work without PO Token.

This PR marks the iOS client as requiring a PO Token (except for HLS formats).

  • Formats missing a PO Token that require one are skipped by default, unless --extractor-args youtube:formats=missing_pot is provided.
  • Improve warnings/logs around missing PO Token
Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

@coletdjnz coletdjnz added high-priority site-bug Issue with a specific website site:youtube labels Dec 23, 2024
@coletdjnz coletdjnz linked an issue Dec 23, 2024 that may be closed by this pull request
11 tasks
coletdjnz and others added 3 commits December 24, 2024 11:48
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
@coletdjnz coletdjnz merged commit 9f42e68 into yt-dlp:master Dec 23, 2024
6 checks passed
@coletdjnz coletdjnz deleted the fix/ios-po-token branch December 23, 2024 23:03
vladisslav2011 pushed a commit to vladisslav2011/yt-dlp that referenced this pull request Jan 30, 2025
subrat-lima pushed a commit to subrat-lima/yt-dlp that referenced this pull request Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high-priority site:youtube site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Youtube] Immediate HTTP Error 403 on download
3 participants