aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-09-11 21:07:32 +0600
committerSergey M․ <dstftw@gmail.com>2015-09-11 21:07:32 +0600
commit586f1cc532d167c28e733779cbf132b94d8f76e6 (patch)
tree1973b754b17790808435b4ab79a05e9e639f982b /youtube_dl
parent73eb13dfc74132b8f0e5c1ac1ea75f66e0aca6bd (diff)
[extractor/common] Skip html comment tags (Closes #6822)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/common.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 835f6f368..d694e818e 100644
--- 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):