itchio-opengamepadui-artpro.../core
Jose Falanga 1bde072983
All checks were successful
Build plugin / build (push) Successful in 1m13s
Fix srcset-polluted URLs from butlerd, sanitize cover and screenshot URLs
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
..
boxart_itch.gd Fix srcset-polluted URLs from butlerd, sanitize cover and screenshot URLs 2026-08-19 18:08:35 -03:00
boxart_itch.tscn Initial commit: itch.io box art provider for OpenGamepadUI 2026-08-16 20:17:35 -03:00