Explorar o código

[extractor/common] Extract submit inputs

Sergey M․ %!s(int64=10) %!d(string=hai) anos
pai
achega
be0e5dbd83
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/common.py

+ 1 - 1
youtube_dl/extractor/common.py

@@ -733,7 +733,7 @@ class InfoExtractor(object):
     def _hidden_inputs(html):
     def _hidden_inputs(html):
         hidden_inputs = {}
         hidden_inputs = {}
         for input in re.findall(r'<input([^>]+)>', html):
         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
                 continue
             name = re.search(r'name=(["\'])(?P<value>.+?)\1', input)
             name = re.search(r'name=(["\'])(?P<value>.+?)\1', input)
             if not name:
             if not name: