1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[extractor/common] Relax _hidden_inputs

This commit is contained in:
Sergey M․ 2016-04-08 23:33:45 +06:00
parent 3c6c7e7d7e
commit bacec0397f

View file

@ -843,7 +843,7 @@ class InfoExtractor(object):
for input in re.findall(r'(?i)<input([^>]+)>', html): for input in re.findall(r'(?i)<input([^>]+)>', html):
if not re.search(r'type=(["\'])(?:hidden|submit)\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|id)=(["\'])(?P<value>.+?)\1', input)
if not name: if not name:
continue continue
value = re.search(r'value=(["\'])(?P<value>.*?)\1', input) value = re.search(r'value=(["\'])(?P<value>.*?)\1', input)