aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/toutv.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/toutv.py')
-rw-r--r--youtube_dl/extractor/toutv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/toutv.py b/youtube_dl/extractor/toutv.py
index 573f2ff6b..26d770992 100644
--- 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,