]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/veoh.py
Imported Debian patch 2015.11.27.1-1.1
[youtubedl] / youtube_dl / extractor / veoh.py
index fb132aef68fff7dc9ae3c4098ad2d31a5945825a..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,
 )
 
 
@@ -49,6 +49,7 @@ class VeohIE(InfoExtractor):
                 'description': 'md5:f5a11c51f8fb51d2315bca0937526891',
                 'uploader': 'newsy-videos',
             },
+            'skip': 'This video has been deleted.',
         },
     ]
 
@@ -107,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)