projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73eb13d
)
[extractor/common] Skip html comment tags (Closes #6822)
author
Sergey M․
<dstftw@gmail.com>
Fri, 11 Sep 2015 15:07:32 +0000
(21:07 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 11 Sep 2015 15:07:32 +0000
(21:07 +0600)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index 835f6f368c68303c46ef399bd185b9aa8e88da2c..d694e818e98dc29939118a6d9fccb8b942b03128 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-731,6
+731,7
@@
class InfoExtractor(object):
@staticmethod
def _hidden_inputs(html):
+ html = re.sub(r'<!--(?:(?!<!--).)*-->', '', html)
hidden_inputs = {}
for input in re.findall(r'(?i)<input([^>]+)>', html):
if not re.search(r'type=(["\'])(?:hidden|submit)\1', input):