More > JRiver Media Center 18 for Mac

simple file renaming preset for album artist

<< < (2/3) > >>

thunderlips222:
Thx!
So close. There are 2 spaces for non-album-artist tracks between the track # and song name.

MrC:
Yup, sorry, I didn't notice due to the font I use.

Since we can't easily escape the trailing space (yet), just do this:

   if(isequal([Album Artist (auto)], Multiple Artists, 7), [Track #] [Artist] - [Name], [Track #] [Name])

An internal space doesn't need escaping.

javidan:

--- Quote from: thunderlips222 on September 10, 2013, 08:37:31 am ---I'd like to set up the file renaming tool so any albums with multiple artists get renamed as [track #] [artist] - [name] while any albums with just 1 artist get renamed [track #] [name]

--- End quote ---

Hey this is a great idea. :)

Thanks for asking, I have actually added this "feature" to my renaming script.
Works really well for soundtracks/compilation albums.

thunderlips222:
glad to hear, it was just the way I had things sep up on foobar.

The tricky part for me now is Directory Rules.

I'm moving my files to folders based on a relational Genre field (Genre2) I created. This is because I have artists scattered across diff. folders. and want to consolidate them by genre without manually mislabeling certain artists with different genres.

With compilations/mutliple artist albums my plan is to manually change the Genre tag instead of using Genre2. Since a lot of the compilations already have 2 or 3 artists with Genre2, if I changed them it would change those Genre2 tags for non-compilation tracks by the same artist.

With the same logic I tried to set up the Directory rule so if it is a compilation, the directory rule is looking at genre but if it's not the directory rule is looking at genre2

if(isequal([Album Artist (auto)], Multiple Artists, 7), [genre]/[artist] - [album] ([year]), [genre2]/[artist] - [album] ([year])

It gives me back:

Base Path
/1, Electronic/(Multiple Artists) - After Dark 2 (2013)/

javidan:

--- Quote from: thunderlips222 on September 12, 2013, 07:59:31 am ---I'm moving my files to folders based on a relational Genre field (Genre2) I created. This is because I have artists scattered across diff. folders. and want to consolidate them by genre without manually mislabeling certain artists with different genres.

With compilations/mutliple artist albums my plan is to manually change the Genre tag instead of using Genre2. Since a lot of the compilations already have 2 or 3 artists with Genre2, if I changed them it would change those Genre2 tags for non-compilation tracks by the same artist.

With the same logic I tried to set up the Directory rule so if it is a compilation, the directory rule is looking at genre but if it's not the directory rule is looking at genre2

if(isequal([Album Artist (auto)], Multiple Artists, 7), [genre]/[artist] - [album] ([year]), [genre2]/[artist] - [album] ([year])

It gives me back:

Base Path
/1, Electronic/(Multiple Artists) - After Dark 2 (2013)/

--- End quote ---

Bear with me because I'm not good with scripts so do correct me if I'm getting your idea confused. You've set up a relational field called [Genre2] right? And what field is it tied to? (Relational fields are insanely powerful but are restricted to only [Artist/Series/Album]) I'm guessing [Genre2] is tied to [Artist].

i.e. You are setting every specific artist to a "super" genre so to speak. e.g. Michael Jackson would likely have a [Genre2] of "Pop" although he could still have plenty of songs with different genres in [Genre]

Thus a compilation album would use [genre]/[artist] - [album] ([year])
A single artist album would use  [genre2]/[artist] - [album] ([year])

Two questions, did you check if you were closing your parenthesis for your if(...) function?
MrC has corrected me, the 2nd question is my own error:

And did you check whether your function was testing for (Multiple Artists) instead of Multiple Artists? The code you pasted looks like it will fail because [Album Artist (auto)] is going to return (Multiple Artist), therefore a isEqual() for Multiple Artist will fail and it is correctly returning [genre2].

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version