Don't append a [1] to the destination dir if album names aren't being used

This commit is contained in:
rembo10
2012-03-23 17:30:43 +00:00
parent 23b10976e2
commit fc3752808d

View File

@@ -344,7 +344,7 @@ def moveFiles(albumpath, release, tracks):
destination_path = os.path.normpath(os.path.join(headphones.DESTINATION_DIR, folder)).encode(headphones.SYS_ENCODING)
if os.path.exists(destination_path):
if os.path.exists(destination_path) and 'album' in headphones.FOLDER_FORMAT:
i = 1
while True:
newfolder = folder + '[%i]' % i