A feature-rich command-line audio/video downloader
[pluralsight] Improve login detection
Sergey M․7e508ff2cf8f
diff --git a/youtube_dl/extractor/pluralsight.py b/youtube_dl/extractor/pluralsight.pyindex de7dc739b2..7693282a59 100644--- 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)