mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-20 16:03:59 +01:00
Fixed post-processor replacing colons in destination dir on Windows
This commit is contained in:
@@ -166,13 +166,12 @@ def moveFiles(albumpath, release, tracks):
|
|||||||
|
|
||||||
|
|
||||||
folder = helpers.replace_all(headphones.FOLDER_FORMAT, values)
|
folder = helpers.replace_all(headphones.FOLDER_FORMAT, values)
|
||||||
folder = folder.replace('./', '_/')
|
folder = folder.replace('./', '_/').replace(':','_').replace('?','_')
|
||||||
|
|
||||||
if folder.endswith('.'):
|
if folder.endswith('.'):
|
||||||
folder = folder.replace(folder[len(folder)-1], '_')
|
folder = folder.replace(folder[len(folder)-1], '_')
|
||||||
|
|
||||||
destination_path = os.path.join(headphones.DESTINATION_DIR, folder)
|
destination_path = os.path.join(headphones.DESTINATION_DIR, folder)
|
||||||
destination_path = destination_path.replace('?','_').replace(':','_')
|
|
||||||
|
|
||||||
if os.path.exists(destination_path):
|
if os.path.exists(destination_path):
|
||||||
i = 1
|
i = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user