]> jfr.im git - yt-dlp.git/commitdiff
[ie/funker530] Fix extraction (#8040)
author04-pasha-04 <redacted>
Sat, 16 Sep 2023 21:06:00 +0000 (23:06 +0200)
committerGitHub <redacted>
Sat, 16 Sep 2023 21:06:00 +0000 (21:06 +0000)
Authored by: 04-pasha-04

yt_dlp/extractor/funker530.py
yt_dlp/extractor/rumble.py

index ba5ab7d4eeb5349f02f2ba9f7dff0feb4f3afb5f..62fd7f6dda69022b7f2f002394e6b254fccbc6cf 100644 (file)
@@ -60,6 +60,7 @@ class Funker530IE(InfoExtractor):
     def _real_extract(self, url):
         display_id = self._match_id(url)
         webpage = self._download_webpage(url, display_id)
+        info = {}
         rumble_url = list(RumbleEmbedIE._extract_embed_urls(url, webpage))
         if rumble_url:
             info = {'url': rumble_url[0], 'ie_key': RumbleEmbedIE.ie_key()}
index f8bf4a18258532e6b0c8e13d41e1d3643848368f..96c192581d8cda0e0e7d0ef0d592b394c18bba06 100644 (file)
@@ -144,7 +144,7 @@ def _extract_embed_urls(cls, url, webpage):
         if embeds:
             return embeds
         return [f'https://rumble.com/embed/{mobj.group("id")}' for mobj in re.finditer(
-            r'<script>[^<]*\bRumble\(\s*"play"\s*,\s*{\s*[\'"]?video[\'"]?\s*:\s*[\'"](?P<id>[0-9a-z]+)[\'"]', webpage)]
+            r'<script>[^<]*\bRumble\(\s*"play"\s*,\s*{[^}]*[\'"]?video[\'"]?\s*:\s*[\'"](?P<id>[0-9a-z]+)[\'"]', webpage)]
 
     def _real_extract(self, url):
         video_id = self._match_id(url)