Fix DLC switch freeze: skip bulk cover scraping for themes/DLC

This commit is contained in:
2026-09-08 23:55:51 -04:00
parent 318a920873
commit e01013ce6a
2 changed files with 10 additions and 4 deletions
+4 -1
View File
@@ -411,6 +411,9 @@ def _fetch_libretro(name, timeout, system="games", indexed_only=False):
data = fetch_libretro_local(name)
if data is not None:
return data
# Theme/DLC share the PSP thumbnails repo, so reuse the games index instead
# of downloading a duplicate copy of the same tree under a new system key.
idx_system = system if system in _PLATFORMS else "games"
if not indexed_only:
# 1. Cheap: exact + progressively stripped names (no index needed).
for kind in _LIBRETRO_KINDS:
@@ -421,7 +424,7 @@ def _fetch_libretro(name, timeout, system="games", indexed_only=False):
# 2. Fuzzy/exact via the precomputed index (covers exact names too, so the
# bulk loader skips the wasteful exact pass entirely).
for kind in _LIBRETRO_KINDS:
best = _index_best(name, kind, system)
best = _index_best(name, kind, idx_system)
if best:
data = _fetch_png(best, kind, timeout, system)
if data is not None: