From b8715214cf6fb19e39c219aed3d3c37b3bf9f379 Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 6 May 2016 23:20:43 +0200 Subject: [PATCH] renaming utility: use only the actual year in default script --- resources/scripts/renamefiles/example1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/renamefiles/example1.js b/resources/scripts/renamefiles/example1.js index 9a663ea..f089bf5 100644 --- a/resources/scripts/renamefiles/example1.js +++ b/resources/scripts/renamefiles/example1.js @@ -184,7 +184,7 @@ if(tageditor.isFile) { var album = validDirectoryName(tag.album); if(notEmpty(album)) { if(notEmpty(tag.year)) { - path.push([tag.year, album].join(" - ")); + path.push([tag.year.split("-")[0], album].join(" - ")); } else { path.push(album); }