projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[__init__] Simplify colon presence check
[youtube-dl]
/
youtube_dl
/
extractor
/
veoh.py
diff --git
a/youtube_dl/extractor/veoh.py
b/youtube_dl/extractor/veoh.py
index fb132aef68fff7dc9ae3c4098ad2d31a5945825a..23ce0a0d1929febac87f789374d8411d7b7ddd00 100644
(file)
--- a/
youtube_dl/extractor/veoh.py
+++ b/
youtube_dl/extractor/veoh.py
@@
-5,14
+5,14
@@
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,
)
class VeohIE(InfoExtractor):
)
class VeohIE(InfoExtractor):
- _VALID_URL = r'http://(?:www\.)?veoh\.com/(?:watch|iphone/#_Watch)/(?P<id>(?:v|yapi-)[\da-zA-Z]+)'
+ _VALID_URL = r'http
s?
://(?:www\.)?veoh\.com/(?:watch|iphone/#_Watch)/(?P<id>(?:v|yapi-)[\da-zA-Z]+)'
_TESTS = [
{
_TESTS = [
{
@@
-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)