1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-27 01:56:52 +00:00

[pluralsight] Improve login detection

This commit is contained in:
Sergey M․ 2015-11-21 21:49:37 +06:00
parent 563772eda4
commit 7e508ff2cf

View file

@ -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)