write / paths

This commit is contained in:
Patrick Moessler 2023-05-21 22:50:02 +02:00
parent 065c4bf389
commit 4e863aca65

View file

@ -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: