commit 586f1cc532d167c28e733779cbf132b94d8f76e6
parent 73eb13dfc74132b8f0e5c1ac1ea75f66e0aca6bd
Author: Sergey M․ <dstftw@gmail.com>
Date: Fri, 11 Sep 2015 21:07:32 +0600
[extractor/common] Skip html comment tags (Closes #6822)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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):