projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c6c7e7
)
[extractor/common] Relax _hidden_inputs
author
Sergey M․
<dstftw@gmail.com>
Fri, 8 Apr 2016 17:33:45 +0000
(23:33 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 8 Apr 2016 17:33:45 +0000
(23:33 +0600)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index a7324af5cf8e8b302758440a577ae02e23a8faa3..17d00721caad1a82f93a82458d0efdd40697abcd 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-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)