mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-25 03:26:57 -05:00
catch fatal error
This commit is contained in:
parent
3b221c5406
commit
08ec0af7c6
@ -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:
|
if mobj is not None:
|
||||||
video_url = mobj.group()
|
video_url = mobj.group()
|
||||||
if 'mp4' in video_url:
|
if 'mp4' in video_url:
|
||||||
@ -3673,8 +3676,8 @@ class WorldStarHipHopIE(InfoExtractor):
|
|||||||
else:
|
else:
|
||||||
ext = 'flv'
|
ext = 'flv'
|
||||||
else:
|
else:
|
||||||
video_url = None
|
self._downloader.trouble(u'ERROR: Cannot find video url for %s' % video_id)
|
||||||
ext = None
|
return
|
||||||
|
|
||||||
_title = r"""<title>(.*)</title>"""
|
_title = r"""<title>(.*)</title>"""
|
||||||
|
|
||||||
@ -3698,9 +3701,6 @@ class WorldStarHipHopIE(InfoExtractor):
|
|||||||
title = mobj.group(1)
|
title = mobj.group(1)
|
||||||
thumbnail = None
|
thumbnail = None
|
||||||
|
|
||||||
m = re.match(self._VALID_URL, url)
|
|
||||||
video_id = m.group('id')
|
|
||||||
|
|
||||||
results = [{
|
results = [{
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'url' : video_url,
|
'url' : video_url,
|
||||||
|
Loading…
Reference in New Issue
Block a user