aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/smotri.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-08-26 21:26:35 +0600
committerSergey M․ <dstftw@gmail.com>2015-08-26 21:26:35 +0600
commit42e7373bd3c819ee7cebf5898e4bdd33730dde6f (patch)
tree6b2d2d8b98ce20dce2009878a97f4f1d387855da /youtube_dl/extractor/smotri.py
parente269d3ae7dbebb22d5b51bd5e6d477a69ae4f3b4 (diff)
[smotri] Use raise_login_required
Diffstat (limited to 'youtube_dl/extractor/smotri.py')
-rw-r--r--youtube_dl/extractor/smotri.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube_dl/extractor/smotri.py b/youtube_dl/extractor/smotri.py
index 93a7cfe15..35a81ee87 100644
--- a/youtube_dl/extractor/smotri.py
+++ b/youtube_dl/extractor/smotri.py
@@ -330,10 +330,7 @@ class SmotriBroadcastIE(InfoExtractor):
(username, password) = self._get_login_info()
if username is None:
- raise ExtractorError(
- 'Erotic broadcasts allowed only for registered users, '
- 'use --username and --password options to provide account credentials.',
- expected=True)
+ self.raise_login_required('Erotic broadcasts allowed only for registered users')
login_form = {
'login-hint53': '1',