projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad72917
)
[extractor/common] Extract submit inputs
author
Sergey M․
<dstftw@gmail.com>
Sun, 6 Sep 2015 01:20:47 +0000
(07:20 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 6 Sep 2015 01:20:47 +0000
(07:20 +0600)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 39cef9c5b99d1c47545455970344bc836c77494e..5eeeda08d3b2cda957106d2ee512eeee3ed55e02 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-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: