projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube] Don't confirm age when initializing
[youtube-dl]
/
youtube_dl
/
extractor
/
vuclip.py
diff --git
a/youtube_dl/extractor/vuclip.py
b/youtube_dl/extractor/vuclip.py
index c2aa497bfa39b99b4d233403ca274b4ff6d56595..ec3c010ad7e151bfc304315cdc5fd32bc21e8f43 100644
(file)
--- a/
youtube_dl/extractor/vuclip.py
+++ b/
youtube_dl/extractor/vuclip.py
@@
-28,9
+28,7
@@
class VuClipIE(InfoExtractor):
mobj = re.match(self._VALID_URL, url)
video_id = mobj.group('id')
mobj = re.match(self._VALID_URL, url)
video_id = mobj.group('id')
- #webpage = self._download_webpage(url, video_id)
- import io
- webpage = io.open('922692425_http_-_m.vuclip.com_wcid=922692425_fid=70295_z=1010_nvar_frm=index.html.dump', encoding='utf-8').read()
+ webpage = self._download_webpage(url, video_id)
ad_m = re.search(
r'''value="No.*?" onClick="location.href='([^"']+)'"''', webpage)
if ad_m:
ad_m = re.search(
r'''value="No.*?" onClick="location.href='([^"']+)'"''', webpage)
if ad_m:
@@
-55,7
+53,7
@@
class VuClipIE(InfoExtractor):
)
(.*?)
(?:
)
(.*?)
(?:
- <a\s+href="fblike
'
|<div\s+class="social">
+ <a\s+href="fblike|<div\s+class="social">
)
''', webpage, 'links')
title = self._html_search_regex(
)
''', webpage, 'links')
title = self._html_search_regex(