From 503c8f2c885d00b7791b437b2c36f8887d2ff583 Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 9 Aug 2023 00:56:37 +0200 Subject: [PATCH] Extend advanced renaming script to put bootlegs and singles into special folder --- resources/scripts/renamefiles/advanced-example.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/scripts/renamefiles/advanced-example.js b/resources/scripts/renamefiles/advanced-example.js index 591045f..fc17a97 100644 --- a/resources/scripts/renamefiles/advanced-example.js +++ b/resources/scripts/renamefiles/advanced-example.js @@ -214,6 +214,11 @@ tageditor.rename(newName) var path = [] if (distDir) { path.push(distDir) + if (tag.comment.includes("bootleg")) { + path.push("bootlegs"); + } else if (tag.comment.includes("single")) { + path.push("singles"); + } var artist = validDirectoryName(firstValue(tag.albumartist || tag.artist)) if (isPartOfCollection(tag)) { path.push(collectionsDir)