youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 7e508ff2cf8f8f8b1784db6fb33994839841d122
parent 563772eda4a42b1fce1f3740fe91bf74e63bd347
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sat, 21 Nov 2015 21:49:37 +0600

[pluralsight] Improve login detection

Diffstat:
Myoutube_dl/extractor/pluralsight.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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)