diff --git a/README.md b/README.md index f3eeee0502..f2ae3a23f3 100644 --- a/README.md +++ b/README.md @@ -1782,7 +1782,7 @@ The following extractors use this feature: * `data_sync_id`: Overrides the account Data Sync ID used in Innertube API requests. This may be needed if you are using an account with `youtube:player_skip=webpage,configs` or `youtubetab:skip=webpage` * `visitor_data`: Overrides the Visitor Data used in Innertube API requests. This should be used with `player_skip=webpage,configs` and without cookies. Note: this may have adverse effects if used improperly. If a session from a browser is wanted, you should pass cookies instead (which contain the Visitor ID) * `po_token`: Proof of Origin (PO) Token(s) to use. Comma seperated list of PO Tokens in the format `CLIENT.CONTEXT+PO_TOKEN`, e.g. `youtube:po_token=web.gvs+XXX,web.player=XXX,web_safari.gvs+YYY`. Context can be either `gvs` (Google Video Server URLs) or `player` (Innertube player request) -* `force_js_variant`: The player javascript variant to use for signature and nsig deciphering. The available variants are `base`, `tce`, `tv`, `es6`, `phone`, `tablet`. Only `base` is recommended as a possible workaround; the others are mainly for debugging purposes. The default is to use what is prescribed by the site, and can be selected with `false` +* `force_js_variant`: The player javascript variant to use for signature and nsig deciphering. The available variants are `main`, `tce`, `tv`, `tv_es6`, `phone`, `tablet`. Only `main` is recommended as a possible workaround; the others are mainly for debugging purposes. The default is to use what is prescribed by the site, and can be selected with `false` #### youtubetab (YouTube playlists, channels, feeds, etc.) * `skip`: One or more of `webpage` (skip initial webpage download), `authcheck` (allow the download of playlists requiring authentication when no initial webpage is downloaded. This may cause unwanted behavior, see [#1122](https://github.com/yt-dlp/yt-dlp/pull/1122) for more details) diff --git a/yt_dlp/extractor/youtube/_video.py b/yt_dlp/extractor/youtube/_video.py index f81fc11054..528afa984d 100644 --- a/yt_dlp/extractor/youtube/_video.py +++ b/yt_dlp/extractor/youtube/_video.py @@ -1761,10 +1761,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor): ] _PLAYER_JS_VARIANT_MAP = { - 'base': '/s/player/{}/player_ias.vflset/en_US/base.js', + 'main': '/s/player/{}/player_ias.vflset/en_US/base.js', 'tce': '/s/player/{}/player_ias_tce.vflset/en_US/base.js', 'tv': '/s/player/{}/tv-player-ias.vflset/tv-player-ias.js', - 'es6': '/s/player/{}/tv-player-es6.vflset/tv-player-es6.js', + 'tv_es6': '/s/player/{}/tv-player-es6.vflset/tv-player-es6.js', 'phone': '/s/player/{}/player-plasma-ias-phone-en_US.vflset/base.js', 'tablet': '/s/player/{}/player-plasma-ias-tablet-en_US.vflset/base.js', }