Compare commits

...

2 Commits

Author SHA1 Message Date
Microeinstein e30cbc4cbb
Merge eea5da4eef into 21792b88b7 2024-04-02 03:34:49 +02:00
Microeinstein eea5da4eef
[SkylineWebcamsIE] Attempt to fix extractor, should investigate further 2023-07-08 17:16:17 +02:00
1 changed files with 4 additions and 1 deletions

View File

@ -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<url>(?:https?:)?//.+?\.m3u8.*?)\1', webpage,
r'(?:url|source)\s*:\s*(["\'])(?P<url>(?: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)