Browse Source

[smotri] Use raise_login_required

master
Sergey M․ 9 years ago
parent
commit
42e7373bd3
1 changed files with 1 additions and 4 deletions
  1. 5
      youtube_dl/extractor/smotri.py

5
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',

Loading…
Cancel
Save