Commit graph

11 commits

Author SHA1 Message Date
b9646e6a8c fix: always prefer stillCoverUrl for capsule art
All checks were successful
Build plugin / build (push) Successful in 1m10s
_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.
2026-08-19 18:58:10 -03:00
98053e6ea7 fix: don't fall back to screenshots as capsule art
All checks were successful
Build plugin / build (push) Successful in 1m10s
_best_portrait_url was falling back to non-GIF screenshots when both
coverUrl and stillCoverUrl were GIFs. Screenshots are not capsule art,
so this produced wrong imagery. Now the function only returns cover
URLs and returns empty when only GIFs are available.
2026-08-19 18:49:29 -03:00
658e8552cb Stop returning GIF URLs from _best_portrait_url
All checks were successful
Build plugin / build (push) Successful in 1m11s
When all available cover URLs are GIFs (coverUrl, stillCoverUrl, and
screenshots), return empty instead of a GIF URL. HTTPImageFetcher cannot
decode GIFs, so attempting to fetch one always returns null. Returning
empty early avoids unnecessary network requests and confusing log noise.
2026-08-19 18:29:34 -03:00
696123b55a Bump to v0.1.8 for clean rebuild
All checks were successful
Build plugin / build (push) Successful in 1m8s
2026-08-19 18:22:08 -03:00
1bde072983 Fix srcset-polluted URLs from butlerd, sanitize cover and screenshot URLs
All checks were successful
Build plugin / build (push) Successful in 1m13s
butlerd sometimes passes itch.io coverUrl/stillCoverUrl with trailing
srcset descriptors (e.g. ' 1x, h' or ' 1'). These polluted URLs cause
HTTPImageFetcher to fail because the URL is invalid and the extension
extraction breaks.

Changes:
- Add _sanitize_url() to strip srcset artifacts from URLs
- Add _is_gif_url() helper that works with both clean and polluted URLs
- Fix SCREENSHOT_REGEX_PATTERN to use [\w+/=]* instead of [^"]* to
  avoid crossing srcset boundaries in HTML
- Replace all .ends_with('.gif') checks with _is_gif_url()
- Sanitize all URLs from game metadata and HTML scraping
- Add IMAGE_EXTS constant for extension validation

Also bump to v0.1.7.
2026-08-19 18:08:35 -03:00
730b600ec0 Resolve merge conflict: cache failures, add Cloudflare detection, bump to v0.1.6
All checks were successful
Build plugin / build (push) Successful in 1m6s
2026-08-19 17:32:25 -03:00
d842605098 Bump version to v0.1.5
All checks were successful
Build plugin / build (push) Successful in 1m7s
2026-08-19 16:42:25 -03:00
d06cba872c GIF handling: skip GIFs in HTTPImageFetcher, filter GIF screenshots, fallback portrait URLs
All checks were successful
Build plugin / build (push) Successful in 1m11s
- HTTPImageFetcher: skip GIF requests early (Godot can't decode), add webp support, try fallback formats
- Art provider: filter GIF screenshots from banners, prefer non-GIF cover URLs via _best_portrait_url
- Fix variable ordering bug (meta used before definition)
2026-08-17 11:07:54 -03:00
8a5dc41064 Add comprehensive logging to art provider for diagnosing missing art
All checks were successful
Build plugin / build (push) Successful in 1m11s
2026-08-17 10:55:56 -03:00
a4834a39eb Bump version to v0.1.2
All checks were successful
Build plugin / build (push) Successful in 1m9s
2026-08-17 01:53:02 -03:00
cb26d9931c Initial commit: itch.io box art provider for OpenGamepadUI
All checks were successful
Build plugin / build (push) Successful in 1m10s
2026-08-16 20:17:35 -03:00