From f7df386e8e8a894bbb10fe7fa03422d9a1ab3890 Mon Sep 17 00:00:00 2001 From: Remy Date: Sun, 31 Jul 2011 16:38:29 -0700 Subject: [PATCH] Fixed post-processor replacing colons in destination dir on Windows --- headphones/postprocessor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index 6800bb3f..aacae6d7 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -166,13 +166,12 @@ def moveFiles(albumpath, release, tracks): folder = helpers.replace_all(headphones.FOLDER_FORMAT, values) - folder = folder.replace('./', '_/') + folder = folder.replace('./', '_/').replace(':','_').replace('?','_') if folder.endswith('.'): folder = folder.replace(folder[len(folder)-1], '_') destination_path = os.path.join(headphones.DESTINATION_DIR, folder) - destination_path = destination_path.replace('?','_').replace(':','_') if os.path.exists(destination_path): i = 1