A feature-rich command-line audio/video downloader
[googledrive] raise ExtractorError instead of warning
remitamine8e92d21ebf6f
diff --git a/youtube_dl/extractor/googledrive.py b/youtube_dl/extractor/googledrive.pyindex a3d9b44506..7bc7b7a0df 100644--- a/youtube_dl/extractor/googledrive.py+++ b/youtube_dl/extractor/googledrive.py@@ -1,7 +1,10 @@import refrom .common import InfoExtractor-from ..utils import RegexNotFoundError+from ..utils import (+ RegexNotFoundError,+ ExtractorError,+)class GoogleDriveEmbedIE(InfoExtractor):_VALID_URL = r'https?://(?:video\.google\.com/get_player\?.*?docid=|(?:docs|drive)\.google\.com/file/d/)(?P<id>[a-zA-Z0-9_-]{28})'@@ -97,10 +100,10 @@ class GoogleDriveIE(InfoExtractor):webpage,'reason')- self.report_warning(reason)+ raise ExtractorError(reason)returnexcept RegexNotFoundError:- self.report_warning('not a video')+ raise ExtractorError('not a video')returnfmt_stream_map = fmt_stream_map.split(',')