0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00
Closes #2923
This commit is contained in:
pukkandan 2022-03-04 19:53:18 +05:30
parent 2a938746f3
commit e48b3875ec
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -240,13 +240,15 @@ def build_innertube_clients():
base_client, *variant = client.split('_') base_client, *variant = client.split('_')
ytcfg['priority'] = 10 * priority(base_client) ytcfg['priority'] = 10 * priority(base_client)
if variant == ['embedded']: if not variant:
ytcfg['INNERTUBE_CONTEXT']['thirdParty'] = THIRD_PARTY INNERTUBE_CLIENTS[f'{client}_agegate'] = agegate_ytcfg = copy.deepcopy(ytcfg)
INNERTUBE_CLIENTS[f'{base_client}_agegate'] = agegate_ytcfg = copy.deepcopy(ytcfg)
agegate_ytcfg['INNERTUBE_CONTEXT']['client']['clientScreen'] = 'EMBED' agegate_ytcfg['INNERTUBE_CONTEXT']['client']['clientScreen'] = 'EMBED'
agegate_ytcfg['INNERTUBE_CONTEXT']['thirdParty'] = THIRD_PARTY
agegate_ytcfg['priority'] -= 1 agegate_ytcfg['priority'] -= 1
elif variant == ['embedded']:
ytcfg['INNERTUBE_CONTEXT']['thirdParty'] = THIRD_PARTY
ytcfg['priority'] -= 2 ytcfg['priority'] -= 2
elif variant: else:
ytcfg['priority'] -= 3 ytcfg['priority'] -= 3