A feature-rich command-line audio/video downloader
[lynda] Logout only when login info present (Closes #7500)
Sergey M․903d1369428f
diff --git a/youtube_dl/extractor/lynda.py b/youtube_dl/extractor/lynda.pyindex 9a207b2cd4..7d78a88059 100644--- 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)