Explorar o código

[lynda] Fix login (Closes #6462)

Sergey M․ %!s(int64=10) %!d(string=hai) anos
pai
achega
8a5601e42f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/lynda.py

+ 1 - 1
youtube_dl/extractor/lynda.py

@@ -17,7 +17,7 @@ from ..utils import (
 
 
 class LyndaBaseIE(InfoExtractor):
 class LyndaBaseIE(InfoExtractor):
     _LOGIN_URL = 'https://www.lynda.com/login/login.aspx'
     _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.'
     _ACCOUNT_CREDENTIALS_HINT = 'Use --username and --password options to provide lynda.com account credentials.'
     _NETRC_MACHINE = 'lynda'
     _NETRC_MACHINE = 'lynda'