mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-10-31 07:50:11 +01:00
[extractor/common] Skip html comment tags (Closes #6822)
This commit is contained in:
parent
73eb13dfc7
commit
586f1cc532
@ -731,6 +731,7 @@ def _twitter_search_player(self, html):
|
||||
|
||||
@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):
|
||||
|
Loading…
Reference in New Issue
Block a user