From 7e21328585afda6d66f98ca476301680eeffac32 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 5 Aug 2024 11:06:10 +0200 Subject: Adding upstream version 2024.07.01. Signed-off-by: Daniel Baumann --- yt_dlp/extractor/rumble.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'yt_dlp/extractor/rumble.py') diff --git a/yt_dlp/extractor/rumble.py b/yt_dlp/extractor/rumble.py index 837a324..db780a2 100644 --- a/yt_dlp/extractor/rumble.py +++ b/yt_dlp/extractor/rumble.py @@ -37,7 +37,7 @@ class RumbleEmbedIE(InfoExtractor): 'duration': 234, 'uploader': 'WMAR', 'live_status': 'not_live', - } + }, }, { 'url': 'https://rumble.com/embed/vslb7v', 'md5': '7418035de1a30a178b8af34dc2b6a52b', @@ -53,7 +53,7 @@ class RumbleEmbedIE(InfoExtractor): 'duration': 901, 'uploader': 'CTNews', 'live_status': 'not_live', - } + }, }, { 'url': 'https://rumble.com/embed/vunh1h', 'info_dict': { @@ -73,12 +73,12 @@ class RumbleEmbedIE(InfoExtractor): { 'url': r're:https://.+\.vtt', 'name': 'English', - 'ext': 'vtt' - } - ] + 'ext': 'vtt', + }, + ], }, }, - 'params': {'skip_download': True} + 'params': {'skip_download': True}, }, { 'url': 'https://rumble.com/embed/v1essrt', 'info_dict': { @@ -93,7 +93,7 @@ class RumbleEmbedIE(InfoExtractor): 'uploader': 'Lofi Girl', 'live_status': 'is_live', }, - 'params': {'skip_download': True} + 'params': {'skip_download': True}, }, { 'url': 'https://rumble.com/embed/v1amumr', 'info_dict': { @@ -110,7 +110,7 @@ class RumbleEmbedIE(InfoExtractor): 'uploader': 'Rumble Events', 'live_status': 'was_live', }, - 'params': {'skip_download': True} + 'params': {'skip_download': True}, }, { 'url': 'https://rumble.com/embed/ufe9n.v5pv5f', 'only_matching': True, @@ -133,7 +133,7 @@ class RumbleEmbedIE(InfoExtractor): 'uploader': 'Mr Producer Media', 'upload_date': '20220610', 'live_status': 'not_live', - } + }, }, ] @@ -198,7 +198,7 @@ class RumbleEmbedIE(InfoExtractor): 'filesize': 'size', 'width': 'w', 'height': 'h', - }, expected_type=lambda x: int(x) or None) + }, expected_type=lambda x: int(x) or None), }) subtitles = { @@ -258,7 +258,7 @@ class RumbleIE(InfoExtractor): 'dislike_count': int, 'view_count': int, 'live_status': 'not_live', - } + }, }, { 'url': 'http://www.rumble.com/vDMUM1?key=value', 'only_matching': True, @@ -353,7 +353,7 @@ class RumbleIE(InfoExtractor): r'\s*([\d,.KM]+)', webpage, 'like count', default=None)), 'dislike_count': parse_count(self._search_regex( r'\s*([\d,.KM]+)', webpage, 'dislike count', default=None)), - 'description': clean_html(get_element_by_class('media-description', webpage)) + 'description': clean_html(get_element_by_class('media-description', webpage)), } @@ -377,7 +377,7 @@ class RumbleChannelIE(InfoExtractor): def entries(self, url, playlist_id): for page in itertools.count(1): try: - webpage = self._download_webpage(f'{url}?page={page}', playlist_id, note='Downloading page %d' % page) + webpage = self._download_webpage(f'{url}?page={page}', playlist_id, note=f'Downloading page {page}') except ExtractorError as e: if isinstance(e.cause, HTTPError) and e.cause.status == 404: break -- cgit v1.2.3