projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #7320 from remitamine/adobetv
[youtube-dl]
/
youtube_dl
/
extractor
/
veoh.py
diff --git
a/youtube_dl/extractor/veoh.py
b/youtube_dl/extractor/veoh.py
index fb132aef68fff7dc9ae3c4098ad2d31a5945825a..9633f7ffeec865c69c77a0e2d7475399a998d44a 100644
(file)
--- 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 (
from .common import InfoExtractor
from ..utils import (
- compat_urllib_request,
int_or_none,
ExtractorError,
int_or_none,
ExtractorError,
+ sanitized_Request,
)
)
@@
-49,6
+49,7
@@
class VeohIE(InfoExtractor):
'description': 'md5:f5a11c51f8fb51d2315bca0937526891',
'uploader': 'newsy-videos',
},
'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
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)
request.add_header('Cookie', 'confirmedAdult=true')
webpage = self._download_webpage(request, video_id)