diff options
author | coletdjnz <coletdjnz@protonmail.com> | 2025-01-12 15:01:13 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-12 15:01:13 +1300 |
commit | 712d2abb32f59b2d246be2901255f84f1a4c30b3 (patch) | |
tree | b640a9e22828b8194c6667b3cb0ca34a9eeee3af | |
parent | 8346b549150003df988538e54c9d8bc4de568979 (diff) |
[ie/youtube] Use `tv` instead of `mweb` client by default (#12059)
Authored by: coletdjnz
-rw-r--r-- | yt_dlp/extractor/youtube.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 1e83e41b8..f414d9d03 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -256,11 +256,12 @@ INNERTUBE_CLIENTS = { 'client': { 'clientName': 'MWEB', 'clientVersion': '2.20241202.07.00', - # mweb does not require PO Token with this UA + # mweb previously did not require PO Token with this UA 'userAgent': 'Mozilla/5.0 (iPad; CPU OS 16_7_10 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1,gzip(gfe)', }, }, 'INNERTUBE_CONTEXT_CLIENT_NAME': 2, + 'REQUIRE_PO_TOKEN': True, 'SUPPORTS_COOKIES': True, }, 'tv': { @@ -1356,8 +1357,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor): '401': {'ext': 'mp4', 'height': 2160, 'format_note': 'DASH video', 'vcodec': 'av01.0.12M.08'}, } _SUBTITLE_FORMATS = ('json3', 'srv1', 'srv2', 'srv3', 'ttml', 'vtt') - _DEFAULT_CLIENTS = ('ios', 'mweb') - _DEFAULT_AUTHED_CLIENTS = ('web_creator', 'mweb') + _DEFAULT_CLIENTS = ('ios', 'tv') + _DEFAULT_AUTHED_CLIENTS = ('web_creator', 'tv') _GEO_BYPASS = False |