From 11827d1700f4f1cb751e159d6091948d1e59a1a1 Mon Sep 17 00:00:00 2001 From: Vargash Date: Tue, 31 Mar 2026 15:08:19 +0200 Subject: [PATCH] fix: retrieve config from get_config() --- backend/utils/gamelist_exporter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/utils/gamelist_exporter.py b/backend/utils/gamelist_exporter.py index add452585..c4e949b51 100644 --- a/backend/utils/gamelist_exporter.py +++ b/backend/utils/gamelist_exporter.py @@ -52,8 +52,9 @@ class GamelistExporter: SubElement(game, "desc").text = rom.summary # Media files + config = cm.get_config() thumbnail_path: str | None = None - thumbnail_option = cm.config.GAMELIST_THUMBNAIL_MEDIA + thumbnail_option = config.GAMELIST_THUMBNAIL_MEDIA if thumbnail_option == "box3d": if rom.ss_metadata and rom.ss_metadata.get("box3d_path"): thumbnail_path = f"{FRONTEND_RESOURCES_PATH}/{rom.ss_metadata['box3d_path']}" @@ -88,7 +89,7 @@ class GamelistExporter: ) image_path: str | None = None - image_option = cm.config.GAMELIST_IMAGE_MEDIA + image_option = config.GAMELIST_IMAGE_MEDIA if image_option == "title_screen": if rom.ss_metadata and rom.ss_metadata.get("title_screen_path"): image_path = f"{FRONTEND_RESOURCES_PATH}/{rom.ss_metadata['title_screen_path']}"