1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-29 12:55:17 +00:00

[ie/youtube] Player client maintenance (#14135)

- Prioritize `tv_simply` over `tv` in default logged-out clients
- Revert `tv` client user-agent to work around 403 errors

Authored by: bashonly
This commit is contained in:
bashonly
2025-08-23 18:45:29 -05:00
committed by GitHub
parent 8f4a908300
commit 3bd9154412
3 changed files with 3 additions and 4 deletions

View File

@@ -257,7 +257,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', 'tv_simply', 'web')
_DEFAULT_CLIENTS = ('tv_simply', 'tv', 'web')
_DEFAULT_AUTHED_CLIENTS = ('tv', 'web_safari', 'web')
# Premium does not require POT (except for subtitles)
_DEFAULT_PREMIUM_CLIENTS = ('tv', 'web_creator', 'web')