mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[youtube] cookie update reminder
This commit is contained in:
		@@ -100,6 +100,8 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
 | 
				
			|||||||
        if username is None:
 | 
					        if username is None:
 | 
				
			||||||
            if self._LOGIN_REQUIRED and self._downloader.params.get('cookiefile') is None:
 | 
					            if self._LOGIN_REQUIRED and self._downloader.params.get('cookiefile') is None:
 | 
				
			||||||
                raise ExtractorError('No login info available, needed for using %s.' % self.IE_NAME, expected=True)
 | 
					                raise ExtractorError('No login info available, needed for using %s.' % self.IE_NAME, expected=True)
 | 
				
			||||||
 | 
					            if self._downloader.params.get('cookiefile') and False:  # TODO remove 'and False' later - too many people using outdated cookies and open issues, remind them.
 | 
				
			||||||
 | 
					                self.to_screen('[Cookies] Reminder - Make sure to always use up to date cookies!')
 | 
				
			||||||
            return True
 | 
					            return True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        login_page = self._download_webpage(
 | 
					        login_page = self._download_webpage(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user