1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-21 22:42:54 +08:00

[extractor/common] Extract submit inputs

This commit is contained in:
Sergey M․ 2015-09-06 07:20:47 +06:00
parent ad72917274
commit be0e5dbd83

View 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: