Fixes Issue #835 ,if the album name contains < and > characters replace them with _ before creating the folder (will fail on windows if we don't)

* / \ and | are also bad characters on windows and are not yet being handled
This commit is contained in:
Patrick Speiser
2012-10-13 12:41:52 +02:00
parent 93396accd2
commit 8ed2534224
+1 -1
View File
@@ -376,7 +376,7 @@ def moveFiles(albumpath, release, tracks):
folder = helpers.replace_all(headphones.FOLDER_FORMAT, values)
folder = folder.replace('./', '_/').replace(':','_').replace('?','_').replace('/.','/_')
folder = folder.replace('./', '_/').replace(':','_').replace('?','_').replace('/.','/_').replace('<','_').replace('>','_')
if folder.endswith('.'):
folder = folder.replace(folder[len(folder)-1], '_')