Browse Source

[extractor/common] Relax _hidden_inputs

totalwebcasting
Sergey M․ 9 years ago
parent
commit
bacec0397f
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

@ -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)


Loading…
Cancel
Save