]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[toutv] Fix login form regex (closes #11223)
authorSergey M․ <dstftw@gmail.com>
Fri, 18 Nov 2016 18:56:31 +0000 (01:56 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 18 Nov 2016 18:56:31 +0000 (01:56 +0700)
youtube_dl/extractor/toutv.py

index 573f2ff6b5a09eb4c234faf2a953ea58d29851d8..26d770992ab1618c95094513371a01fcf99d1a70 100644 (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,