Extend advanced renaming script to put bootlegs and singles into special folder

This commit is contained in:
Martchus 2023-08-09 00:56:37 +02:00
parent 7f8cf5c44d
commit 503c8f2c88
1 changed files with 5 additions and 0 deletions

View File

@ -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)