[newgrounds] ignore '<script>' content in 'tags' (#7604)

This commit is contained in:
Mike Fährmann
2025-05-30 21:29:21 +02:00
parent ec523c2c2c
commit f9dd8318f1

View File

@@ -198,7 +198,10 @@ class NewgroundsExtractor(Extractor):
data["favorites"] = text.parse_int(extr(
'id="faves_load">', '<').replace(",", ""))
data["score"] = text.parse_float(extr('id="score_number">', '<'))
data["tags"] = text.split_html(extr('<dd class="tags">', '</dd>'))
data["tags"] = [
t for t in text.split_html(extr('<dd class="tags">', '</dd>'))
if "(function(" not in t
]
data["artist"] = [
text.extr(user, '//', '.')
for user in text.extract_iter(page, '<div class="item-user">', '>')