From 8ed253422419eab97761f7d48f714f4d7475a560 Mon Sep 17 00:00:00 2001 From: Patrick Speiser Date: Sat, 13 Oct 2012 12:41:52 +0200 Subject: [PATCH] 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 --- headphones/postprocessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index a78e753e..89b4f694 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -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], '_')