mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
adds support for socks protocols and --geo-veryfication-proxy
This commit is contained in:
parent
be477061e8
commit
17acc34e46
@ -2274,7 +2274,7 @@ class YoutubeDL(object):
|
|||||||
if hasattr(handler, 'proxies'):
|
if hasattr(handler, 'proxies'):
|
||||||
proxy_map.update(handler.proxies)
|
proxy_map.update(handler.proxies)
|
||||||
self._write_string('[debug] Proxy map: ' + re.sub(
|
self._write_string('[debug] Proxy map: ' + re.sub(
|
||||||
r'(https?://)(?:(?:[^:/\'"@]+:)?[^@]+)(@)',
|
r'((?:http|socks5)s?://)(?:(?:[^:@]+:)?[^@]+)(@)',
|
||||||
r'\1PRIVATE\2',
|
r'\1PRIVATE\2',
|
||||||
compat_str(proxy_map)) + '\n')
|
compat_str(proxy_map)) + '\n')
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ from .version import __version__
|
|||||||
|
|
||||||
|
|
||||||
def _hide_login_info(opts):
|
def _hide_login_info(opts):
|
||||||
PRIVATE_OPTS = set(['-p', '--password', '-u', '--username', '--video-password', '--ap-password', '--ap-username', '--proxy'])
|
PRIVATE_OPTS = set(['-p', '--password', '-u', '--username', '--video-password', '--ap-password', '--ap-username', '--proxy', '--geo-verification-proxy'])
|
||||||
eqre = re.compile('^(?P<key>' + ('|'.join(re.escape(po) for po in PRIVATE_OPTS)) + ')=.+$')
|
eqre = re.compile('^(?P<key>' + ('|'.join(re.escape(po) for po in PRIVATE_OPTS)) + ')=.+$')
|
||||||
|
|
||||||
def _scrub_eq(o):
|
def _scrub_eq(o):
|
||||||
|
Loading…
Reference in New Issue
Block a user