[extractor/common] Extract submit inputs
authorSergey M․ <dstftw@gmail.com>
Sun, 6 Sep 2015 01:20:47 +0000 (07:20 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 6 Sep 2015 01:20:47 +0000 (07:20 +0600)
youtube_dl/extractor/common.py

index 39cef9c5b99d1c47545455970344bc836c77494e..5eeeda08d3b2cda957106d2ee512eeee3ed55e02 100644 (file)
@@ -733,7 +733,7 @@ class InfoExtractor(object):
     def _hidden_inputs(html):
         hidden_inputs = {}
         for input in re.findall(r'<input([^>]+)>', html):
-            if not re.search(r'type=(["\'])hidden\1', input):
+            if not re.search(r'type=(["\'])(?:hidden|submit)\1', input):
                 continue
             name = re.search(r'name=(["\'])(?P<value>.+?)\1', input)
             if not name: