1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 19:32:50 +08:00

[toutv] Fix login form regex (closes #11223)

This commit is contained in:
Sergey M․ 2016-11-19 01:56:31 +07:00
parent 748a462fbe
commit df46b19cb8
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -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,