mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-26 04:02:11 +00:00
[pluralsight] Improve login detection
This commit is contained in:
parent
563772eda4
commit
7e508ff2cf
1 changed files with 3 additions and 0 deletions
|
@ -84,6 +84,9 @@ class PluralsightIE(PluralsightBaseIE):
|
||||||
if error:
|
if error:
|
||||||
raise ExtractorError('Unable to login: %s' % error, expected=True)
|
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):
|
def _real_extract(self, url):
|
||||||
qs = compat_urlparse.parse_qs(compat_urlparse.urlparse(url).query)
|
qs = compat_urlparse.parse_qs(compat_urlparse.urlparse(url).query)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue