[20detik] Use fatal search regex
This commit is contained in:
parent
57757308e1
commit
1141133e71
@ -44,7 +44,7 @@ class DuaPuluhDetikIE(InfoExtractor):
|
||||
webpage = self._download_webpage(embed_url, video_id)
|
||||
m3u8_url = self._html_search_regex(
|
||||
r'''["\']videoUrl["\']\s*:\s*["\'](?P<m3u8_url>.*?)["\']''',
|
||||
webpage, 'm3u8_url', group='m3u8_url', default='', fatal=False)
|
||||
webpage, 'm3u8_url', group='m3u8_url', default='')
|
||||
if len(m3u8_url) == 0:
|
||||
raise ExtractorError('Video not found')
|
||||
title = self._og_search_title(webpage)
|
||||
|
Loading…
x
Reference in New Issue
Block a user