youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 903d1369428f72397dbc698654dbad445ecaf2ac
parent 9d584da7d0fd207d46e1592b25244cfcad4354ed
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sat, 14 Nov 2015 16:43:58 +0600

[lynda] Logout only when login info present (Closes #7500)

Diffstat:
Myoutube_dl/extractor/lynda.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/lynda.py b/youtube_dl/extractor/lynda.py @@ -83,6 +83,10 @@ class LyndaBaseIE(InfoExtractor): raise ExtractorError('Unable to log in') def _logout(self): + username, _ = self._get_login_info() + if username is None: + return + self._download_webpage( 'http://www.lynda.com/ajax/logout.aspx', None, 'Logging out', 'Unable to log out', fatal=False)