]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/veoh.py
Imported Upstream version 2016.02.22
[youtubedl] / youtube_dl / extractor / veoh.py
index a7953a7e7c5d33b154435cd7b4afa354994f4bf5..9633f7ffeec865c69c77a0e2d7475399a998d44a 100644 (file)
@@ -5,9 +5,9 @@ import json
 
 from .common import InfoExtractor
 from ..utils import (
-    compat_urllib_request,
     int_or_none,
     ExtractorError,
+    sanitized_Request,
 )
 
 
@@ -108,7 +108,7 @@ class VeohIE(InfoExtractor):
         if 'class="adultwarning-container"' in webpage:
             self.report_age_confirmation()
             age_limit = 18
-            request = compat_urllib_request.Request(url)
+            request = sanitized_Request(url)
             request.add_header('Cookie', 'confirmedAdult=true')
             webpage = self._download_webpage(request, video_id)