Skip to content

Commit

Permalink
[ie/funker530] Fix extraction (#8040)
Browse files Browse the repository at this point in the history
Authored by: 04-pasha-04
  • Loading branch information
04-pasha-04 committed Sep 16, 2023
1 parent ecef42c commit 0ce1f48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions yt_dlp/extractor/funker530.py
Expand Up @@ -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()}
Expand Down
2 changes: 1 addition & 1 deletion yt_dlp/extractor/rumble.py
Expand Up @@ -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)
Expand Down

0 comments on commit 0ce1f48

Please sign in to comment.