[ie/youtube] Add web_embedded client fallbacks (#17462)

Authored by: bashonly
This commit is contained in:
bashonly
2026-08-18 12:10:10 +00:00
committed by GitHub
parent 6218535213
commit 5d5b634d8e
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -142,9 +142,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
_SUBTITLE_FORMATS = ('json3', 'srv1', 'srv2', 'srv3', 'ttml', 'srt', 'vtt')
_DEFAULT_CLIENTS = ('visionos', 'web')
_DEFAULT_JSLESS_CLIENTS = ('visionos',)
_DEFAULT_AUTHED_CLIENTS = ('tv_downgraded', 'web')
_DEFAULT_AUTHED_CLIENTS = ('web_embedded', 'tv_downgraded', 'web')
# Premium does not require POT (except for subtitles)
_DEFAULT_PREMIUM_CLIENTS = ('tv_downgraded', 'web_creator', 'web')
_DEFAULT_PREMIUM_CLIENTS = ('web_creator', 'tv_downgraded', 'web')
_WEBPAGE_CLIENTS = ('web', 'web_safari')
_DEFAULT_WEBPAGE_CLIENT = 'web'
@@ -3150,6 +3150,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
# ...and is a JS runtime is available?
and any(p.is_available() for p in self._jsc_director.providers.values())
):
append_client('web_embedded')
append_client('tv_downgraded')
# web_embedded can work around age-gate and age-verification for some embeddable videos