]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/rumble.py
[cleanup] Fix infodict returned fields (#8906)
[yt-dlp.git] / yt_dlp / extractor / rumble.py
index 85567d9a22802987476b834b923d4489096bbe5f..837a324e624ff226bd1153d3ac3652e0e476d144 100644 (file)
@@ -90,7 +90,6 @@ class RumbleEmbedIE(InfoExtractor):
             'channel_url': 'https://rumble.com/c/LofiGirl',
             'channel': 'Lofi Girl',
             'thumbnail': r're:https://.+\.jpg',
-            'duration': None,
             'uploader': 'Lofi Girl',
             'live_status': 'is_live',
         },
@@ -383,7 +382,7 @@ def entries(self, url, playlist_id):
                 if isinstance(e.cause, HTTPError) and e.cause.status == 404:
                     break
                 raise
-            for video_url in re.findall(r'class=video-item--a\s?href=([^>]+\.html)', webpage):
+            for video_url in re.findall(r'class="[^>"]*videostream__link[^>]+href="([^"]+\.html)"', webpage):
                 yield self.url_result('https://rumble.com' + video_url)
 
     def _real_extract(self, url):