From 4e863aca659e3e794309ebe214157557f90a18e0 Mon Sep 17 00:00:00 2001 From: Patrick Moessler Date: Sun, 21 May 2023 22:50:02 +0200 Subject: [PATCH] write / paths --- src/add_tracks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add_tracks.py b/src/add_tracks.py index 181dd90..88511c1 100644 --- a/src/add_tracks.py +++ b/src/add_tracks.py @@ -59,7 +59,7 @@ def main(media_path: str, tag: str, pattern: str, recursive: bool = False) -> No raise FileNotFoundError(f"Config file could not be loaded for tag id: {tag}") tracks: List[str] = config.get("tracks", []) - tracks.extend(sorted(valid_paths)) + tracks.extend(sorted((f.replace("\\", "/") for f in valid_paths))) config["tracks"] = tracks with open(config_path, "w") as jf: