projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
748a462
)
[toutv] Fix login form regex (closes #11223)
author
Sergey M․
<dstftw@gmail.com>
Fri, 18 Nov 2016 18:56:31 +0000
(
01:56
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 18 Nov 2016 18:56:31 +0000
(
01:56
+0700)
youtube_dl/extractor/toutv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/toutv.py
b/youtube_dl/extractor/toutv.py
index 573f2ff6b5a09eb4c234faf2a953ea58d29851d8..26d770992ab1618c95094513371a01fcf99d1a70 100644
(file)
--- a/
youtube_dl/extractor/toutv.py
+++ b/
youtube_dl/extractor/toutv.py
@@
-56,7
+56,7
@@
class TouTvIE(InfoExtractor):
'state': state,
})
login_form = self._search_regex(
- r'(?s)(<form[^>]+
id
="Form-login".+?</form>)', login_webpage, 'login form')
+ r'(?s)(<form[^>]+
(?:id|name)
="Form-login".+?</form>)', login_webpage, 'login form')
form_data = self._hidden_inputs(login_form)
form_data.update({
'login-email': email,