From 1d6d933044be98ddf97e493cd022f0313253366c Mon Sep 17 00:00:00 2001 From: Hawker2 <59458605+Hawker2@users.noreply.github.com> Date: Sun, 12 Jan 2025 15:04:56 -0600 Subject: [PATCH] Incorporates fixes for the bad playlist IDs, support for the spankbang.party domain, and country impersonation https://github.com/yt-dlp/yt-dlp/pull/7085 https://github.com/yt-dlp/yt-dlp/pull/10799 --- yt_dlp/extractor/spankbang.py | 6 ++++++ 1 file changed, 6 insertions(+) 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'