diff options
author | Johny Mo Swag <johnymo@me.com> | 2013-03-08 22:48:05 -0800 |
---|---|---|
committer | Johny Mo Swag <johnymo@me.com> | 2013-03-08 22:48:05 -0800 |
commit | 08ec0af7c69f5da0f8c75c84886694877b9b08bf (patch) | |
tree | 3a02c0d45f32013487af38a4f39b4e3fef49b8cc | |
parent | 3b221c540640f7df9e4dc453a736dd25fe2505c4 (diff) |
catch fatal error
-rwxr-xr-x | youtube_dl/InfoExtractors.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index c2e3c8983..a31aa759e 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -3666,6 +3666,9 @@ class WorldStarHipHopIE(InfoExtractor): 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: @@ -3673,8 +3676,8 @@ class WorldStarHipHopIE(InfoExtractor): 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>""" @@ -3697,9 +3700,6 @@ class WorldStarHipHopIE(InfoExtractor): 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, |