Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SkylineWebcamsIE] Attempt to fix extractor, should investigate further #32421

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion youtube_dl/extractor/skylinewebcams.py
Expand Up @@ -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<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)

Expand Down