Make sure netrc works for all extractors with login support

Fixes #5112
This commit is contained in:
Philipp Hagemeister 2015-03-03 12:59:17 +01:00
parent 07490f8017
commit 499bfcbfd0
6 changed files with 31 additions and 0 deletions

View file

@ -19,6 +19,7 @@ class LyndaBaseIE(InfoExtractor):
_LOGIN_URL = 'https://www.lynda.com/login/login.aspx'
_SUCCESSFUL_LOGIN_REGEX = r'isLoggedIn: true'
_ACCOUNT_CREDENTIALS_HINT = 'Use --username and --password options to provide lynda.com account credentials.'
_NETRC_MACHINE = 'lynda'
def _real_initialize(self):
self._login()