projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c53455
)
[lynda] Use raise_login_required
author
Sergey M․
<dstftw@gmail.com>
Wed, 26 Aug 2015 15:25:53 +0000
(21:25 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 26 Aug 2015 15:25:53 +0000
(21:25 +0600)
youtube_dl/extractor/lynda.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/lynda.py
b/youtube_dl/extractor/lynda.py
index 5b9157ed43efb0169baac327ce37ec7d46eb69f5..378117270439e7ce2669c46422f3df63caa33051 100644
(file)
--- a/
youtube_dl/extractor/lynda.py
+++ b/
youtube_dl/extractor/lynda.py
@@
-118,9
+118,7
@@
class LyndaIE(LyndaBaseIE):
'lynda returned error: %s' % video_json['Message'], expected=True)
if video_json['HasAccess'] is False:
- raise ExtractorError(
- 'Video %s is only available for members. '
- % video_id + self._ACCOUNT_CREDENTIALS_HINT, expected=True)
+ self.raise_login_required('Video %s is only available for members' % video_id)
video_id = compat_str(video_json['ID'])
duration = video_json['DurationInSeconds']