From b5a62498854921ae65997b80e2e956645a76c9d1 Mon Sep 17 00:00:00 2001 From: kikuyan Date: Wed, 21 Jul 2021 14:33:35 +0900 Subject: [PATCH] [extractor/rumble] raise error if unable to get video info --- youtube_dl/extractor/rumble.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/youtube_dl/extractor/rumble.py b/youtube_dl/extractor/rumble.py index 4a0225109..7daf251fc 100644 --- a/youtube_dl/extractor/rumble.py +++ b/youtube_dl/extractor/rumble.py @@ -5,6 +5,7 @@ from .common import InfoExtractor from ..compat import compat_str from ..utils import ( determine_ext, + ExtractorError, int_or_none, parse_iso8601, try_get, @@ -33,6 +34,9 @@ class RumbleEmbedIE(InfoExtractor): video = self._download_json( 'https://rumble.com/embedJS/', video_id, query={'request': 'video', 'v': video_id}) + if not video: + raise ExtractorError('Unable to get video information. Please make sure that the URL is alive and playable in a browser.', expected=True) + title = video['title'] formats = []