projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3b221c5
)
catch fatal error
author
Johny Mo Swag
<johnymo@me.com>
Sat, 9 Mar 2013 06:48:05 +0000
(22:48 -0800)
committer
Johny Mo Swag
<johnymo@me.com>
Sat, 9 Mar 2013 06:48:05 +0000
(22:48 -0800)
youtube_dl/InfoExtractors.py
patch
|
blob
|
history
diff --git
a/youtube_dl/InfoExtractors.py
b/youtube_dl/InfoExtractors.py
index c2e3c8983cb7490615253b7b04a6cd744ba6c615..a31aa759e2abdd33756388772307915f5cb5cbae 100755
(executable)
--- a/
youtube_dl/InfoExtractors.py
+++ b/
youtube_dl/InfoExtractors.py
@@
-3666,6
+3666,9
@@
class WorldStarHipHopIE(InfoExtractor):
mobj = re.search(_src_url, webpage_src)
mobj = re.search(_src_url, webpage_src)
+ m = re.match(self._VALID_URL, url)
+ video_id = m.group('id')
+
if mobj is not None:
video_url = mobj.group()
if 'mp4' in video_url:
if mobj is not None:
video_url = mobj.group()
if 'mp4' in video_url:
@@
-3673,8
+3676,8
@@
class WorldStarHipHopIE(InfoExtractor):
else:
ext = 'flv'
else:
else:
ext = 'flv'
else:
- video_url = None
- ext = None
+ self._downloader.trouble(u'ERROR: Cannot find video url for %s' % video_id)
+ return
_title = r"""<title>(.*)</title>"""
_title = r"""<title>(.*)</title>"""
@@
-3697,9
+3700,6
@@
class WorldStarHipHopIE(InfoExtractor):
if mobj is not None:
title = mobj.group(1)
thumbnail = None
if mobj is not None:
title = mobj.group(1)
thumbnail = None
-
- m = re.match(self._VALID_URL, url)
- video_id = m.group('id')
results = [{
'id': video_id,
results = [{
'id': video_id,