From 8e0e5bfedfbf5dceb4f75490f391c757b93ea9f5 Mon Sep 17 00:00:00 2001 From: Jose Falanga Date: Mon, 17 Aug 2026 01:48:46 -0300 Subject: [PATCH] Skip GIF screenshots to avoid ungrabbable animated images --- core/boxart_itch.gd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/boxart_itch.gd b/core/boxart_itch.gd index 9699e80..b0bf9d3 100644 --- a/core/boxart_itch.gd +++ b/core/boxart_itch.gd @@ -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}