From cf058306be85d73ff5377695082158feee9bc00e Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 8 Nov 2024 20:10:19 +0100 Subject: [PATCH] Capture group for the _DOMAIN_RE section of the _VALID_URL Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> --- yt_dlp/extractor/cloudflarestream.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/cloudflarestream.py b/yt_dlp/extractor/cloudflarestream.py index d2f94b4c88..79807126c1 100644 --- a/yt_dlp/extractor/cloudflarestream.py +++ b/yt_dlp/extractor/cloudflarestream.py @@ -63,7 +63,8 @@ class CloudflareStreamIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) - domain = 'bytehighway.net' if 'bytehighway.net/' in url else 'cloudflarestream.com' + if domain != 'bytehighway.net': + domain = 'cloudflarestream.com' base_url = f'https://{domain}/{video_id}/' if '.' in video_id: video_id = self._parse_json(base64.urlsafe_b64decode(