Skip GIF screenshots to avoid ungrabbable animated images
Some checks failed
Build plugin / build (push) Has been cancelled
Some checks failed
Build plugin / build (push) Has been cancelled
This commit is contained in:
parent
cb26d9931c
commit
cab94453eb
1 changed files with 5 additions and 1 deletions
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue