projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89a683a
)
[twitch] Show reset password request
author
Sergey M․
<dstftw@gmail.com>
Fri, 10 Jul 2015 15:16:42 +0000
(21:16 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 10 Jul 2015 15:16:42 +0000
(21:16 +0600)
youtube_dl/extractor/twitch.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/twitch.py
b/youtube_dl/extractor/twitch.py
index f912d3825e65046e33068f34aafce63eaa07f235..df809ecfecb841a3d141c17571a3699fad6949a3 100644
(file)
--- 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')