Re-enable cover/metadata scraping for themes and DLC

This commit is contained in:
2026-09-08 23:04:24 -04:00
parent 115cdd84b0
commit be54ff00aa
4 changed files with 10 additions and 56 deletions
-11
View File
@@ -30,15 +30,6 @@ _PLATFORMS = {
"ps1": {"libretro_repo": "Sony_-_PlayStation", "igdb_id": 7, "ss_id": "57"},
}
# Content types that have no meaningful cover/metadata (IGDB/etc. lookups
# return unrelated games, so scraping is disabled for them).
NON_COVER_SYSTEMS = {"theme", "dlc"}
def is_scrapable(system):
"""Whether cover/metadata scraping makes sense for this item type."""
return (system or "games") not in NON_COVER_SYSTEMS
def _platform(system):
"""Platform parameters (libretro repo, IGDB id, ScreenScraper id)."""
@@ -1151,8 +1142,6 @@ def fetch_cover(name, release_id, system, timeout=10, quick=False):
``quick`` limits the game fallback to libretro only (index-driven and fast),
for bulk store loading; details views use the full IGDB/ScreenScraper path.
"""
if not is_scrapable(system):
return None
dest = cover_path(release_id, system)
if dest.exists():
if file_is_image(dest):