From: Sergey M․ Date: Fri, 10 Jul 2015 15:16:42 +0000 (+0600) Subject: [twitch] Show reset password request X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=17b41a3337b5326fd2c8dec8aa1ab285225e1daa;p=youtube-dl [twitch] Show reset password request --- diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py index f912d3825..df809ecfe 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')