[lynda] Fix login (Closes #6462)
authorSergey M․ <dstftw@gmail.com>
Wed, 5 Aug 2015 13:52:04 +0000 (19:52 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 5 Aug 2015 13:52:04 +0000 (19:52 +0600)
youtube_dl/extractor/lynda.py

index a00f6e5e5eb1d398ef0776d8b20dcb1dd51ec082..39214de2f575ed52ee00054d94dfc3a97897c716 100644 (file)
@@ -17,7 +17,7 @@ from ..utils import (
 
 class LyndaBaseIE(InfoExtractor):
     _LOGIN_URL = 'https://www.lynda.com/login/login.aspx'
-    _SUCCESSFUL_LOGIN_REGEX = r'isLoggedIntrue'
+    _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'