From 7a9253efdf87d675065ea6552d2847e451daf17e Mon Sep 17 00:00:00 2001 From: Vargash Date: Sun, 23 Nov 2025 19:54:29 +0100 Subject: [PATCH] Add local_path parameter for /gamelist/export API --- backend/endpoints/gamelist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/endpoints/gamelist.py b/backend/endpoints/gamelist.py index c61426251..8493c27fe 100644 --- a/backend/endpoints/gamelist.py +++ b/backend/endpoints/gamelist.py @@ -23,6 +23,7 @@ async def export_gamelist( platform_ids: Annotated[ List[int], Query(description="List of platform IDs to export") ], + local_path: Annotated[bool, Query(description="Use local paths instead of URLs")] = False, ) -> Response: """Export platforms/ROMs to gamelist.xml format and write to platform directories""" if not platform_ids: @@ -37,7 +38,7 @@ async def export_gamelist( # Export each platform to its respective directory for platform_id in platform_ids: - success = await exporter.export_platform_to_file(platform_id, request) + success = await exporter.export_platform_to_file(platform_id, request if not local_path else None) if success: files_written.append(f"gamelist_{platform_id}.xml") else: