Capture group for the _DOMAIN_RE section of the _VALID_URL

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
Hugo 2024-11-08 20:10:19 +01:00 committed by GitHub
parent 5779617171
commit cf058306be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(