mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-11-14 05:25:12 +00:00
[ie/youtube] Implement external n/sig solver (#14157)
Closes #14404, Closes #14431, Closes #14680, Closes #14707 Authored by: bashonly, coletdjnz, seproDev, Grub4K Co-authored-by: coletdjnz <coletdjnz@protonmail.com> Co-authored-by: bashonly <bashonly@protonmail.com> Co-authored-by: sepro <sepro@sepr0.com>
This commit is contained in:
@@ -387,7 +387,8 @@ def _fix_embedded_ytcfg(ytcfg):
|
||||
|
||||
|
||||
def build_innertube_clients():
|
||||
BASE_CLIENTS = ('ios', 'web', 'tv', 'mweb', 'android')
|
||||
# From highest to lowest priority
|
||||
BASE_CLIENTS = ('tv', 'web', 'mweb', 'android', 'ios')
|
||||
priority = qualities(BASE_CLIENTS[::-1])
|
||||
|
||||
for client, ytcfg in tuple(INNERTUBE_CLIENTS.items()):
|
||||
@@ -409,9 +410,6 @@ def build_innertube_clients():
|
||||
|
||||
if variant == 'embedded':
|
||||
_fix_embedded_ytcfg(ytcfg)
|
||||
ytcfg['priority'] -= 2
|
||||
elif variant:
|
||||
ytcfg['priority'] -= 3
|
||||
|
||||
|
||||
build_innertube_clients()
|
||||
|
||||
Reference in New Issue
Block a user