1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-31 14:45:14 +00:00

[core] Workaround erroneous urllib Windows proxy parsing (#7092)

Convert proxies extracted from windows registry to http for older Python versions.
See: https://github.com/python/cpython/issues/86793

Authored by: coletdjnz
This commit is contained in:
coletdjnz
2023-05-27 19:17:27 +12:00
committed by GitHub
parent b87e01c123
commit 3f66b6fe50
4 changed files with 49 additions and 2 deletions

View File

@@ -21,9 +21,9 @@ import time
import tokenize
import traceback
import unicodedata
import urllib.request
from .cache import Cache
from .compat import urllib # isort: split
from .compat import compat_os_name, compat_shlex_quote
from .cookies import load_cookies
from .downloader import FFmpegFD, get_suitable_downloader, shorten_protocol_name