Fixed post-processor replacing colons in destination dir on Windows

This commit is contained in:
Remy
2011-07-31 16:38:29 -07:00
parent 516f81cc59
commit f7df386e8e

View File

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