aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/twitch.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-10 21:16:42 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-10 21:16:42 +0600
commit17b41a3337b5326fd2c8dec8aa1ab285225e1daa (patch)
tree51fc2ec19792aa7edbe683dfbee421bca51ffa23 /youtube_dl/extractor/twitch.py
parent89a683ae745de77f96ac8e82c8ff16d2675fa398 (diff)
[twitch] Show reset password request
Diffstat (limited to 'youtube_dl/extractor/twitch.py')
-rw-r--r--youtube_dl/extractor/twitch.py3
1 files changed, 3 insertions, 0 deletions
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')