]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/iprima.py
Annotate changelog with bug closed.
[youtubedl] / youtube_dl / extractor / iprima.py
index 821c8ec109236b787b9afa2985e450ff8a647595..36baf3245353604ac67af1500029c4be6a67ed4f 100644 (file)
@@ -6,12 +6,10 @@ from random import random
 from math import floor
 
 from .common import InfoExtractor
 from math import floor
 
 from .common import InfoExtractor
-from ..compat import (
-    compat_urllib_request,
-)
 from ..utils import (
     ExtractorError,
     remove_end,
 from ..utils import (
     ExtractorError,
     remove_end,
+    sanitized_Request,
 )
 
 
 )
 
 
@@ -61,7 +59,7 @@ class IPrimaIE(InfoExtractor):
             (floor(random() * 1073741824), floor(random() * 1073741824))
         )
 
             (floor(random() * 1073741824), floor(random() * 1073741824))
         )
 
-        req = compat_urllib_request.Request(player_url)
+        req = sanitized_Request(player_url)
         req.add_header('Referer', url)
         playerpage = self._download_webpage(req, video_id)
 
         req.add_header('Referer', url)
         playerpage = self._download_webpage(req, video_id)