aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vuclip.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-08-19 23:56:09 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-08-19 23:56:09 +0800
commitecc90093f9c3793439832f4c9d279605da3489a7 (patch)
tree8a77de53762d88aa9b5872c8db22cd79f8728d98 /youtube_dl/extractor/vuclip.py
parent520251c093f5e0fe6af5e57203a0452aef0682ac (diff)
[vuclip] Adapt to the new API and update _TEST
Diffstat (limited to 'youtube_dl/extractor/vuclip.py')
-rw-r--r--youtube_dl/extractor/vuclip.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/youtube_dl/extractor/vuclip.py b/youtube_dl/extractor/vuclip.py
index b73da5cd0..55e087bdb 100644
--- a/youtube_dl/extractor/vuclip.py
+++ b/youtube_dl/extractor/vuclip.py
@@ -17,12 +17,12 @@ class VuClipIE(InfoExtractor):
_VALID_URL = r'https?://(?:m\.)?vuclip\.com/w\?.*?cid=(?P<id>[0-9]+)'
_TEST = {
- 'url': 'http://m.vuclip.com/w?cid=922692425&fid=70295&z=1010&nvar&frm=index.html',
+ 'url': 'http://m.vuclip.com/w?cid=1129900602&bu=8589892792&frm=w&z=34801&op=0&oc=843169247&section=recommend',
'info_dict': {
- 'id': '922692425',
+ 'id': '1129900602',
'ext': '3gp',
- 'title': 'The Toy Soldiers - Hollywood Movie Trailer',
- 'duration': 177,
+ 'title': 'Top 10 TV Convicts',
+ 'duration': 733,
}
}
@@ -54,7 +54,7 @@ class VuClipIE(InfoExtractor):
'url': video_url,
}]
else:
- formats = self._parse_html5_media_entries(url, webpage)[0]['formats']
+ formats = self._parse_html5_media_entries(url, webpage, video_id)[0]['formats']
title = remove_end(self._html_search_regex(
r'<title>(.*?)-\s*Vuclip</title>', webpage, 'title').strip(), ' - Video')