Skip to content

Commit

Permalink
Revert 2e4cacd
Browse files Browse the repository at this point in the history
Closes #2923
  • Loading branch information
pukkandan committed Mar 4, 2022
1 parent 2a93874 commit e48b387
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions yt_dlp/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit e48b387

Please sign in to comment.