aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorcoletdjnz <coletdjnz@protonmail.com>2023-05-27 19:17:27 +1200
committerGitHub <noreply@github.com>2023-05-27 07:17:27 +0000
commit3f66b6fe50f8d5b545712f8b19d5ae62f5373980 (patch)
treeb94844271d954ae026d9ea9c7a0dd6c9dfd60b8b /yt_dlp/YoutubeDL.py
parentb87e01c123fd560b6a674ce00f45a9459d82d98a (diff)
downloadhypervideo-pre-3f66b6fe50f8d5b545712f8b19d5ae62f5373980.tar.lz
hypervideo-pre-3f66b6fe50f8d5b545712f8b19d5ae62f5373980.tar.xz
hypervideo-pre-3f66b6fe50f8d5b545712f8b19d5ae62f5373980.zip
[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
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index f69bc98c5..f49dbf07d 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -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