mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
catch fatal error
This commit is contained in:
parent
3b221c5406
commit
08ec0af7c6
1 changed files with 5 additions and 5 deletions
|
@ -3666,6 +3666,9 @@ def _real_extract(self, url):
|
|||
|
||||
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 @@ def _real_extract(self, url):
|
|||
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 @@ def _real_extract(self, url):
|
|||
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,
|
||||
|
|
Loading…
Reference in a new issue