projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[lynda] Fix login (Closes #6462)
[youtube-dl]
/
youtube_dl
/
extractor
/
lynda.py
diff --git
a/youtube_dl/extractor/lynda.py
b/youtube_dl/extractor/lynda.py
index cfd3b14f4bfd755a7600701e86900ece12b0c3ac..39214de2f575ed52ee00054d94dfc3a97897c716 100644
(file)
--- a/
youtube_dl/extractor/lynda.py
+++ b/
youtube_dl/extractor/lynda.py
@@
-17,7
+17,7
@@
from ..utils import (
class LyndaBaseIE(InfoExtractor):
_LOGIN_URL = 'https://www.lynda.com/login/login.aspx'
class LyndaBaseIE(InfoExtractor):
_LOGIN_URL = 'https://www.lynda.com/login/login.aspx'
- _SUCCESSFUL_LOGIN_REGEX = r'isLoggedIn
:
true'
+ _SUCCESSFUL_LOGIN_REGEX = r'isLoggedIn
\s*:\s*
true'
_ACCOUNT_CREDENTIALS_HINT = 'Use --username and --password options to provide lynda.com account credentials.'
_NETRC_MACHINE = 'lynda'
_ACCOUNT_CREDENTIALS_HINT = 'Use --username and --password options to provide lynda.com account credentials.'
_NETRC_MACHINE = 'lynda'
@@
-30,13
+30,13
@@
class LyndaBaseIE(InfoExtractor):
return
login_form = {
return
login_form = {
- 'username': username,
- 'password': password,
+ 'username': username
.encode('utf-8')
,
+ 'password': password
.encode('utf-8')
,
'remember': 'false',
'stayPut': 'false'
}
request = compat_urllib_request.Request(
'remember': 'false',
'stayPut': 'false'
}
request = compat_urllib_request.Request(
- self._LOGIN_URL, compat_urllib_parse.urlencode(login_form))
+ self._LOGIN_URL, compat_urllib_parse.urlencode(login_form)
.encode('utf-8')
)
login_page = self._download_webpage(
request, None, 'Logging in as %s' % username)
login_page = self._download_webpage(
request, None, 'Logging in as %s' % username)
@@
-65,7
+65,7
@@
class LyndaBaseIE(InfoExtractor):
'stayPut': 'false',
}
request = compat_urllib_request.Request(
'stayPut': 'false',
}
request = compat_urllib_request.Request(
- self._LOGIN_URL, compat_urllib_parse.urlencode(confirm_form))
+ self._LOGIN_URL, compat_urllib_parse.urlencode(confirm_form)
.encode('utf-8')
)
login_page = self._download_webpage(
request, None,
'Confirming log in and log out from another device')
login_page = self._download_webpage(
request, None,
'Confirming log in and log out from another device')