From b9646e6a8c762c1c7a43514a277146d85b9783c0 Mon Sep 17 00:00:00 2001 From: Jose Falanga Date: Wed, 19 Aug 2026 18:58:10 -0300 Subject: [PATCH] fix: always prefer stillCoverUrl for capsule art _bset_portrait_url was filtering GIF URLs, but stillCoverUrl is the still image version by definition and should always be used when available. This restores the original behavior where games with GIF capsules get their still cover image. --- core/boxart_itch.gd | 12 ++++-------- plugin.json | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/core/boxart_itch.gd b/core/boxart_itch.gd index 0a6e9a0..23d8967 100644 --- a/core/boxart_itch.gd +++ b/core/boxart_itch.gd @@ -187,17 +187,13 @@ func _url_for_layout(kind: LAYOUT, cover_url: String, screenshots: Array) -> Str ## Returns the best portrait/logo URL from the game data. -## Prefers stillCoverUrl, then coverUrl. Screenshots are never used as -## capsule art. Returns empty if the only available cover URLs are GIFs, -## since HTTPImageFetcher cannot decode GIF images. +## Prefers stillCoverUrl (the still/non-animated version of the cover), +## then coverUrl. Screenshots are never used as capsule art. func _best_portrait_url(game: Dictionary, _screenshots: Array) -> String: var still: String = game.get("stillCoverUrl", "") - if not still.is_empty() and not _is_gif_url(still): + if not still.is_empty(): return still - var cover: String = game.get("coverUrl", "") - if not cover.is_empty() and not _is_gif_url(cover): - return cover - return "" + return game.get("coverUrl", "") ## Combines two textures side-by-side into a single banner image. diff --git a/plugin.json b/plugin.json index 634e65f..bcc6189 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "plugin.id": "itch-artprovider", "plugin.name": "itch.io Art Provider", - "plugin.version": "0.1.10", + "plugin.version": "0.1.11", "plugin.min-api-version": "1.1.0", "plugin.link": "https://forge.thergic.ar/jose/itchio-opengamepadui-artprovider-plugin", "plugin.source": "https://forge.thergic.ar/jose/itchio-opengamepadui-artprovider-plugin",