projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
563772e
)
[pluralsight] Improve login detection
author
Sergey M․
<dstftw@gmail.com>
Sat, 21 Nov 2015 15:49:37 +0000
(21:49 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 21 Nov 2015 15:49:37 +0000
(21:49 +0600)
youtube_dl/extractor/pluralsight.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pluralsight.py
b/youtube_dl/extractor/pluralsight.py
index de7dc739b25c9f5418ec9e1336b161115c8277c2..7693282a59ababcf861695fed1ba06d7a7271fab 100644
(file)
--- a/
youtube_dl/extractor/pluralsight.py
+++ b/
youtube_dl/extractor/pluralsight.py
@@
-84,6
+84,9
@@
class PluralsightIE(PluralsightBaseIE):
if error:
raise ExtractorError('Unable to login: %s' % error, expected=True)
+ if all(p not in response for p in ('__INITIAL_STATE__', '"currentUser"')):
+ raise ExtractorError('Unable to log in')
+
def _real_extract(self, url):
qs = compat_urlparse.parse_qs(compat_urlparse.urlparse(url).query)