]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Don't install the global url opener
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 10 Mar 2014 18:04:30 +0000 (19:04 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 10 Mar 2014 18:04:51 +0000 (19:04 +0100)
All the code uses now the urlopen method of YoutubeDL

youtube_dl/YoutubeDL.py

index c1bd0b0859ea4007cda997674915374f9d062f42..1db27315c8b79fa0f03a652452dae57de6b72e4e 100644 (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)