diff --git a/youtube_dl/extractor/skylinewebcams.py b/youtube_dl/extractor/skylinewebcams.py index b7f8ac73687..aa37c4692e6 100644 --- a/youtube_dl/extractor/skylinewebcams.py +++ b/youtube_dl/extractor/skylinewebcams.py @@ -26,9 +26,12 @@ def _real_extract(self, url): webpage = self._download_webpage(url, video_id) stream_url = self._search_regex( - r'(?:url|source)\s*:\s*(["\'])(?P(?:https?:)?//.+?\.m3u8.*?)\1', webpage, + r'(?:url|source)\s*:\s*(["\'])(?P(?:https?:)?(?://)?\S+?\.m3u8.*?)\1', webpage, 'stream url', group='url') + if 'skylinewebcams.com' not in stream_url and 'livee.m3u8' in stream_url: + stream_url = stream_url.replace('livee.m3u8', 'https://hd-auth.skylinewebcams.com/live.m3u8') + title = self._og_search_title(webpage) description = self._og_search_description(webpage)