diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-04 19:53:18 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-04 20:18:14 +0530 |
commit | e48b3875ec4426ab9437fd06b857266d6e15bb55 (patch) | |
tree | 9a57f2c04de55de9bdcbc62413fea16bd815feb7 | |
parent | 2a938746f3db75fc160aab055e889f1e31ccabed (diff) | |
download | hypervideo-pre-e48b3875ec4426ab9437fd06b857266d6e15bb55.tar.lz hypervideo-pre-e48b3875ec4426ab9437fd06b857266d6e15bb55.tar.xz hypervideo-pre-e48b3875ec4426ab9437fd06b857266d6e15bb55.zip |
Revert 2e4cacd038b8543ccecfa9081dff6f656c979548
Closes #2923
-rw-r--r-- | yt_dlp/extractor/youtube.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 602d48e3c..4e812af99 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -240,13 +240,15 @@ def build_innertube_clients(): base_client, *variant = client.split('_') ytcfg['priority'] = 10 * priority(base_client) - if variant == ['embedded']: - ytcfg['INNERTUBE_CONTEXT']['thirdParty'] = THIRD_PARTY - INNERTUBE_CLIENTS[f'{base_client}_agegate'] = agegate_ytcfg = copy.deepcopy(ytcfg) + if not variant: + INNERTUBE_CLIENTS[f'{client}_agegate'] = agegate_ytcfg = copy.deepcopy(ytcfg) agegate_ytcfg['INNERTUBE_CONTEXT']['client']['clientScreen'] = 'EMBED' + agegate_ytcfg['INNERTUBE_CONTEXT']['thirdParty'] = THIRD_PARTY agegate_ytcfg['priority'] -= 1 + elif variant == ['embedded']: + ytcfg['INNERTUBE_CONTEXT']['thirdParty'] = THIRD_PARTY ytcfg['priority'] -= 2 - elif variant: + else: ytcfg['priority'] -= 3 |