projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbb43a3
)
[eroprofile] Use raise_login_required
author
Sergey M․
<dstftw@gmail.com>
Wed, 26 Aug 2015 15:25:37 +0000
(21:25 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 26 Aug 2015 15:25:37 +0000
(21:25 +0600)
youtube_dl/extractor/eroprofile.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/eroprofile.py
b/youtube_dl/extractor/eroprofile.py
index 316033cf18b42cefead780ceca15b361ebbddac7..7fcd0151d8efdfd2b2378c0097b363e563e3171b 100644
(file)
--- 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+)'],