aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-07-18 23:31:14 +0100
committerremitamine <remitamine@gmail.com>2015-07-23 11:59:13 +0100
commit8e92d21ebf6f17e14c9e916f22e49f27529556af (patch)
tree8510f22112d65273927d5134c4d5adc4da831786 /youtube_dl
parent36dbca87848fc5698d3e0b89380c7bcec741ceaf (diff)
[googledrive] raise ExtractorError instead of warning
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/googledrive.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/googledrive.py b/youtube_dl/extractor/googledrive.py
index a3d9b4450..7bc7b7a0d 100644
--- a/youtube_dl/extractor/googledrive.py
+++ b/youtube_dl/extractor/googledrive.py
@@ -1,7 +1,10 @@
import re
from .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)
return
except RegexNotFoundError:
- self.report_warning('not a video')
+ raise ExtractorError('not a video')
return
fmt_stream_map = fmt_stream_map.split(',')