mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 00:25:15 +00:00 
			
		
		
		
	[lynda] Logout only when login info present (Closes #7500)
This commit is contained in:
		@@ -83,6 +83,10 @@ class LyndaBaseIE(InfoExtractor):
 | 
				
			|||||||
            raise ExtractorError('Unable to log in')
 | 
					            raise ExtractorError('Unable to log in')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _logout(self):
 | 
					    def _logout(self):
 | 
				
			||||||
 | 
					        username, _ = self._get_login_info()
 | 
				
			||||||
 | 
					        if username is None:
 | 
				
			||||||
 | 
					            return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self._download_webpage(
 | 
					        self._download_webpage(
 | 
				
			||||||
            'http://www.lynda.com/ajax/logout.aspx', None,
 | 
					            'http://www.lynda.com/ajax/logout.aspx', None,
 | 
				
			||||||
            'Logging out', 'Unable to log out', fatal=False)
 | 
					            'Logging out', 'Unable to log out', fatal=False)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user