X-Git-Url: https://git.rapsys.eu/youtubedl/blobdiff_plain/509eeaaa67b2f901752c50fc6edf41954dbe3085..d018d3313032e12968a6add6800e51d412e2f602:/youtube_dl/extractor/veoh.py?ds=sidebyside diff --git a/youtube_dl/extractor/veoh.py b/youtube_dl/extractor/veoh.py index fb132ae..9633f7f 100644 --- a/youtube_dl/extractor/veoh.py +++ b/youtube_dl/extractor/veoh.py @@ -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)