Skip GIF screenshots to avoid ungrabbable animated images
Some checks failed
Build plugin / build (push) Has been cancelled

This commit is contained in:
Jose Falanga 2026-08-17 01:48:46 -03:00
parent cb26d9931c
commit 8e0e5bfedf

View file

@ -164,7 +164,11 @@ func _fetch_game_page_metadata(game: Dictionary) -> Dictionary:
shot_re.compile("https://img\\.itch\\.zone/aW1hZ2Uv[^\"]*/original/[^\"]*")
var screenshots: Array = []
for m in shot_re.search_all(html):
screenshots.append(m.get_string(0))
var url: String = m.get_string(0)
if url.to_lower().ends_with(".gif"):
logger.debug("Skipping GIF screenshot: " + url)
continue
screenshots.append(url)
return {"screenshots": screenshots}