From 7ad9628b08d07e762e9f4711bd1fa067ebd7ca89 Mon Sep 17 00:00:00 2001 From: CeruleanSky Date: Wed, 20 Jan 2016 10:02:53 -0500 Subject: [PATCH] modified regex to find hls_stream variable to work reguardless of whether it is quoted or not. --- youtube_dl/extractor/ora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/ora.py b/youtube_dl/extractor/ora.py index c6d613879..fe8baf847 100644 --- a/youtube_dl/extractor/ora.py +++ b/youtube_dl/extractor/ora.py @@ -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',