mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-04 08:12:59 +08:00
modified regex to find hls_stream variable to work reguardless of whether it is quoted or not.
This commit is contained in:
parent
2ddc783e9d
commit
7ad9628b08
@ -31,7 +31,7 @@ class OraTVIE(InfoExtractor):
|
||||
video_data = self._search_regex(
|
||||
r'"video"\s*:\s*({[^}]+?})', webpage, 'current video')
|
||||
m3u8_url = self._search_regex(
|
||||
r'hls_stream\s*:\s*"([^"]+)', video_data, 'm3u8 url', None)
|
||||
r'"?hls_stream"?\s*:\s*"([^"]+)', video_data, 'm3u8 url', None)
|
||||
if m3u8_url:
|
||||
formats = self._extract_m3u8_formats(
|
||||
m3u8_url, display_id, 'mp4', 'm3u8_native',
|
||||
|
Loading…
Reference in New Issue
Block a user