diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-08-26 21:25:37 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-08-26 21:25:37 +0600 |
commit | 3c53455d15035a94bcd2bc915f565420e1a4279f (patch) | |
tree | 082d47ff7454ba12a1ebbac083fbb8bc4f2e24c9 /youtube_dl/extractor/eroprofile.py | |
parent | bbb43a39fd11c2fdf28ae593eaa994f22ce663bc (diff) |
[eroprofile] Use raise_login_required
Diffstat (limited to 'youtube_dl/extractor/eroprofile.py')
-rw-r--r-- | youtube_dl/extractor/eroprofile.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/eroprofile.py b/youtube_dl/extractor/eroprofile.py index 316033cf1..7fcd0151d 100644 --- a/youtube_dl/extractor/eroprofile.py +++ b/youtube_dl/extractor/eroprofile.py @@ -71,8 +71,7 @@ class EroProfileIE(InfoExtractor): m = re.search(r'You must be logged in to view this video\.', webpage) if m: - raise ExtractorError( - 'This video requires login. Please specify a username and password and try again.', expected=True) + self.raise_login_required('This video requires login') video_id = self._search_regex( [r"glbUpdViews\s*\('\d*','(\d+)'", r'p/report/video/(\d+)'], |