Browse Source

[extractor/common] Extract submit inputs

totalwebcasting
Sergey M․ 9 years ago
parent
commit
be0e5dbd83
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/common.py

+ 1
- 1
youtube_dl/extractor/common.py 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:


Loading…
Cancel
Save