1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

Don't install the global url opener

All the code uses now the urlopen method of YoutubeDL
This commit is contained in:
Jaime Marquínez Ferrándiz 2014-03-10 19:04:30 +01:00
parent 19a41fc613
commit a0792b738e

View file

@ -1236,6 +1236,3 @@ class YoutubeDL(object):
# (See https://github.com/rg3/youtube-dl/issues/1309 for details)
opener.addheaders = []
self._opener = opener
# TODO remove this global modification
compat_urllib_request.install_opener(opener)