[ROMM-2833] Fix using default locales in igdb handler

This commit is contained in:
Georges-Antoine Assi
2026-01-02 12:26:48 -05:00
parent a8096e14bd
commit 4465784a05

View File

@@ -236,9 +236,8 @@ def get_igdb_preferred_locale() -> str | None:
# Check each region in priority order and return first match
for region in config.SCAN_REGION_PRIORITY:
igdb_locale = REGION_TO_IGDB_LOCALE.get(region.lower())
if igdb_locale is not None:
return igdb_locale
if region.lower() in REGION_TO_IGDB_LOCALE:
return REGION_TO_IGDB_LOCALE[region.lower()]
return None