1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-18 03:08:31 +00:00

[ie/youtube] Require PO Token for iOS HLS formats

This commit is contained in:
coletdjnz 2025-07-12 11:18:17 +12:00
parent 5b57b72c1a
commit dcbacbe46c
No known key found for this signature in database
GPG Key ID: 91984263BB39894A
2 changed files with 2 additions and 3 deletions

View File

@ -260,9 +260,8 @@ class SubsPoTokenPolicy(BasePoTokenPolicy):
not_required_with_player_token=True,
),
# HLS Livestreams require POT 30 seconds in
# TODO: Rolling out
StreamingProtocol.HLS: GvsPoTokenPolicy(
required=False,
required=True,
recommended=True,
not_required_with_player_token=True,
),

View File

@ -256,7 +256,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
'401': {'ext': 'mp4', 'height': 2160, 'format_note': 'DASH video', 'vcodec': 'av01.0.12M.08'},
}
_SUBTITLE_FORMATS = ('json3', 'srv1', 'srv2', 'srv3', 'ttml', 'srt', 'vtt')
_DEFAULT_CLIENTS = ('tv', 'ios', 'web')
_DEFAULT_CLIENTS = ('tv', 'web')
_DEFAULT_AUTHED_CLIENTS = ('tv', 'web')
# Premium does not require POT (except for subtitles)
_DEFAULT_PREMIUM_CLIENTS = ('tv', 'web')