From f307fb899e36698f80b815dce6db30761a12bc44 Mon Sep 17 00:00:00 2001 From: zurdi Date: Fri, 21 Feb 2025 01:19:09 +0000 Subject: [PATCH] fix: generation of .m3u files --- backend/endpoints/rom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/endpoints/rom.py b/backend/endpoints/rom.py index e595a7e16..d910f2ce4 100644 --- a/backend/endpoints/rom.py +++ b/backend/endpoints/rom.py @@ -320,7 +320,7 @@ async def get_rom_content( raise RomNotFoundInDatabaseException(id) # https://muos.dev/help/addcontent#what-about-multi-disc-content - hidden_folder = request.query_params.get("hidden_folder") == "true" + hidden_folder = request.query_params.get("hidden_folder").lower() == "true" file_ids = request.query_params.get("file_ids") or "" file_ids = [int(f) for f in file_ids.split(",") if f] @@ -392,7 +392,7 @@ async def get_rom_content( # Add M3U file m3u_encoded_content = "\n".join( - [f.full_path.replace(rom.full_path, "") for f in files] + [f.full_path.replace(rom.full_path, ".hidden") for f in files] ).encode() m3u_filename = f"{rom.fs_name}.m3u" m3u_info = ZipInfo(filename=m3u_filename, date_time=now.timetuple()[:6])