From eea5da4eef9d74760f36410768188bcc91beae88 Mon Sep 17 00:00:00 2001 From: Microeinstein Date: Sat, 8 Jul 2023 17:16:17 +0200 Subject: [PATCH] [SkylineWebcamsIE] Attempt to fix extractor, should investigate further --- youtube_dl/extractor/skylinewebcams.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/skylinewebcams.py b/youtube_dl/extractor/skylinewebcams.py index b7f8ac736..aa37c4692 100644 --- a/youtube_dl/extractor/skylinewebcams.py +++ b/youtube_dl/extractor/skylinewebcams.py @@ -26,9 +26,12 @@ class SkylineWebcamsIE(InfoExtractor): 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)