mirror of
https://github.com/l1ving/youtube-dl
synced 2024-12-21 21:02:52 +08:00
[extractor/common] Relax _hidden_inputs
This commit is contained in:
parent
3c6c7e7d7e
commit
bacec0397f
@ -843,7 +843,7 @@ class InfoExtractor(object):
|
||||
for input in re.findall(r'(?i)<input([^>]+)>', html):
|
||||
if not re.search(r'type=(["\'])(?:hidden|submit)\1', input):
|
||||
continue
|
||||
name = re.search(r'name=(["\'])(?P<value>.+?)\1', input)
|
||||
name = re.search(r'(?:name|id)=(["\'])(?P<value>.+?)\1', input)
|
||||
if not name:
|
||||
continue
|
||||
value = re.search(r'value=(["\'])(?P<value>.*?)\1', input)
|
||||
|
Loading…
Reference in New Issue
Block a user