From: Sergey M․ Date: Fri, 18 Nov 2016 18:56:31 +0000 (+0700) Subject: [toutv] Fix login form regex (closes #11223) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=df46b19cb82b90807693d0d25ac5d817546dd63b;p=youtube-dl [toutv] Fix login form regex (closes #11223) --- 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)(]+id="Form-login".+?)', login_webpage, 'login form') + r'(?s)(]+(?:id|name)="Form-login".+?)', login_webpage, 'login form') form_data = self._hidden_inputs(login_form) form_data.update({ 'login-email': email,