I've been struggling with renaming an moving my audio files.
When buying music online, I will download it to a /downloads/music folder, where I use Yate to review and update metadata. Once I've made the necessary changes, I want to move it to a folder structure on my NAS.
The file & folder structure on the NAS is as follows:
For compilations:
[Compilation] > (Grouping >) Album > (D#-)T# - Artist - Title
For non-compilation albums
(Sort) Album Artist > (Grouping >) Album > (D#-)T# - Title
If the Sort Album Artist is available, it is used, otherwise Album Artist is used for the Album Artist folder level. The "Grouping" level is optional and should only be created when the grouping tag is set. This is where I'm strugling.
With previous version, this was working as expected with the template below:
❨IfMultiDisc❩
❨Disc Pad2❩-
❨endIf❩
❨Track Pad2❩
❨IfCompilation❩
- ❨Artist❩
❨endIf❩
- ❨Title❩
❨IfDup❩
(❨Dup #❩)
❨endIf❩
❨Folder Start❩
❨Album❩
❨IfExists Version❩
[❨Version❩]
❨endIf❩
❨Folder Start❩
❨IfExists Grouping❩
❨Grouping❩
❨endIf❩
❨Folder Start❩
❨IfCompilation❩
[Compilations]
❨Else❩
❨IfExists Sort Album Artist❩
❨Sort Album Artist❩
❨Else❩
❨Album Artist❩
❨endIf❩
❨endIf❩
With the latest update, I'm now getting an error status that Folder Start 2 could not be resolved when initiating a move using the template. I can understand this being the case when a Grouping is not defined as it basically means there is a Folder Start without a folder name.
After searching on the forum, I found this example: https://2manyrobots.com/forum/?mingleforumaction=viewtopic&t=1012, which seemed to be similar what I was trying to achieve, so I adapted my template using the (Current Folder) as follows:
❨IfMultiDisc❩
❨Disc Pad2❩-
❨endIf❩
❨Track Pad2❩
❨IfCompilation❩
- ❨Artist❩
❨endIf❩
- ❨Title❩
❨IfDup❩
(❨Dup #❩)
❨endIf❩
❨Folder Start❩
❨Album❩
❨IfExists Version❩
[❨Version❩]
❨endIf❩
❨Folder Start❩
❨IfExists Grouping❩
❨Grouping❩
❨Else❩
❨IfCompilation❩
[Compilations]
❨Else❩
❨IfExists Sort Album Artist❩
❨Sort Album Artist❩
❨Else❩
❨Album Artist❩
❨endIf❩
❨endIf❩
❨endIf❩
❨Folder Start❩
❨IfExists Grouping❩
❨IfCompilation❩
[Compilations]
❨Else❩
❨IfExists Sort Album Artist❩
❨Sort Album Artist❩
❨Else❩
❨Album Artist❩
❨endIf❩
❨endIf❩
❨Else❩
❨Current Folder❩
❨endIf❩
Although the error is gone, and the move is executed, I now find that I have two levels of Album Artist folders:
Album Artist > Album Artists > Album > Track
Maybe I'm not understand the use of the (Current Folder), or maybe it's the combination of the rename template with the move action which is different from the example I found.
Any help would be greatly appreaciated.
|