diff --git a/yt_dlp/extractor/spankbang.py b/yt_dlp/extractor/spankbang.py index 4546b88d54..2b5957c3ee 100644 --- a/yt_dlp/extractor/spankbang.py +++ b/yt_dlp/extractor/spankbang.py @@ -113,6 +113,7 @@ class SpankBangIE(InfoExtractor): stream_key = self._search_regex( r'data-streamkey\s*=\s*(["\'])(?P(?:(?!\1).)+)\1', webpage, 'stream key', group='value') + stream_domain = re.search(r'https?://(?:[^/]+\.)?(spankbang\.(?:com|party))/', url).group(1) stream_url = 'https://' + stream_domain + '/api/videos/stream' stream = self._download_json( @@ -130,6 +131,11 @@ class SpankBangIE(InfoExtractor): format_url = format_url[0] extract_format(format_id, format_url) + og_url = self._search_regex( + r'