mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-07-02 20:12:53 -05:00
Don't install the global url opener
All the code uses now the urlopen method of YoutubeDL
This commit is contained in:
@ -1236,6 +1236,3 @@ class YoutubeDL(object):
|
|||||||
# (See https://github.com/rg3/youtube-dl/issues/1309 for details)
|
# (See https://github.com/rg3/youtube-dl/issues/1309 for details)
|
||||||
opener.addheaders = []
|
opener.addheaders = []
|
||||||
self._opener = opener
|
self._opener = opener
|
||||||
|
|
||||||
# TODO remove this global modification
|
|
||||||
compat_urllib_request.install_opener(opener)
|
|
||||||
|
Reference in New Issue
Block a user