A feature-rich command-line audio/video downloader
[twitch] Show reset password request
Sergey M․17b41a3337b5
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.pyindex f912d3825e..df809ecfec 100644--- a/youtube_dl/extractor/twitch.py+++ b/youtube_dl/extractor/twitch.py@@ -81,6 +81,9 @@ class TwitchBaseIE(InfoExtractor):raise ExtractorError('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):try:source = next(f for f in formats if f['format_id'] == 'Source')