]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/extremetube.py
Update changelog.
[youtubedl] / youtube_dl / extractor / extremetube.py
index c5677c82b8306293d51862e0be514da7ed4433c6..3403581fddf08a0928a8e4c5b22e740117646bd2 100644 (file)
@@ -3,9 +3,9 @@ from __future__ import unicode_literals
 import re
 
 from .common import InfoExtractor
 import re
 
 from .common import InfoExtractor
-from ..compat import compat_urllib_request
 from ..utils import (
     int_or_none,
 from ..utils import (
     int_or_none,
+    sanitized_Request,
     str_to_int,
 )
 
     str_to_int,
 )
 
@@ -37,7 +37,7 @@ class ExtremeTubeIE(InfoExtractor):
     def _real_extract(self, url):
         video_id = self._match_id(url)
 
     def _real_extract(self, url):
         video_id = self._match_id(url)
 
-        req = compat_urllib_request.Request(url)
+        req = sanitized_Request(url)
         req.add_header('Cookie', 'age_verified=1')
         webpage = self._download_webpage(req, video_id)
 
         req.add_header('Cookie', 'age_verified=1')
         webpage = self._download_webpage(req, video_id)