]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/dcn.py
Annotate changelog with bug closed.
[youtubedl] / youtube_dl / extractor / dcn.py
index 6f2fea5ff18cddb3c033ce0cadf061e414773652..9737cff14b86849a7a4b4bd838902a4d71278c93 100644 (file)
@@ -2,13 +2,11 @@
 from __future__ import unicode_literals
 
 from .common import InfoExtractor
-from ..compat import (
-    compat_urllib_parse,
-    compat_urllib_request,
-)
+from ..compat import compat_urllib_parse
 from ..utils import (
     int_or_none,
     parse_iso8601,
+    sanitized_Request,
 )
 
 
@@ -36,7 +34,7 @@ class DCNIE(InfoExtractor):
     def _real_extract(self, url):
         video_id = self._match_id(url)
 
-        request = compat_urllib_request.Request(
+        request = sanitized_Request(
             'http://admin.mangomolo.com/analytics/index.php/plus/video?id=%s' % video_id,
             headers={'Origin': 'http://www.dcndigital.ae'})