[20detik] Fix search regex
This commit is contained in:
parent
67a9e1b2d5
commit
0f70fb8ae0
@ -43,7 +43,7 @@ class DuaPuluhDetikIE(InfoExtractor):
|
|||||||
display_id = "%s-%s" % (upload_date, video_id)
|
display_id = "%s-%s" % (upload_date, video_id)
|
||||||
webpage = self._download_webpage(embed_url, video_id)
|
webpage = self._download_webpage(embed_url, video_id)
|
||||||
m3u8_url = self._html_search_regex(
|
m3u8_url = self._html_search_regex(
|
||||||
r'''["\']videoUrl["\']\s*:\s*["\'](?P<m3u8_url>.*?)["\']''',
|
r'''["\']videoUrl["\']\s*:\s*["\'](?P<m3u8_url>.+)["\']''',
|
||||||
webpage, 'm3u8_url', group='m3u8_url', default='')
|
webpage, 'm3u8_url', group='m3u8_url', default='')
|
||||||
if len(m3u8_url) == 0:
|
if len(m3u8_url) == 0:
|
||||||
raise ExtractorError('Video not found')
|
raise ExtractorError('Video not found')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user