mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[twitch] Show reset password request
This commit is contained in:
		@@ -81,6 +81,9 @@ class TwitchBaseIE(InfoExtractor):
 | 
				
			|||||||
            raise ExtractorError(
 | 
					            raise ExtractorError(
 | 
				
			||||||
                'Unable to login. Twitch said: %s' % error_message, expected=True)
 | 
					                'Unable to login. Twitch said: %s' % error_message, expected=True)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if '>Reset your password<' in response:
 | 
				
			||||||
 | 
					            self.report_warning('Twitch asks you to reset your password, go to https://secure.twitch.tv/reset/submit')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _prefer_source(self, formats):
 | 
					    def _prefer_source(self, formats):
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            source = next(f for f in formats if f['format_id'] == 'Source')
 | 
					            source = next(f for f in formats if f['format_id'] == 'Source')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user