More > JRiver Media Center 18 for Mac

simple file renaming preset for album artist

(1/3) > >>

thunderlips222:
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]

MrC:
[Track #]ifelse(isequal([album artist (auto)], /(Multiple Artists/)), / [artist] -) [Name]

thunderlips222:
Thx MrC, I'm sure this will be simple for me soon when I learn the expression language

thunderlips222:


Hi again, so this is what's showing up when I copy/paste that.

For me to understand the language better, is this how you'd explain the expression you posted?

track number first, stays the same regardless of what kind of album it is
guessing there should then be a space
ifelse is for nesting if/then situations
the isequal is the first if/then sequence, here it's set so that if album artist (auto) = (Multiple Artists) you'll see the artist name before the track name. the slash marks before the parentheses make sure the parentheses are treated as characters, not as expression containers.

where i'm lost:
the floating slash mark before artist I don't understand. The parentheses after the hyphen show up in the filename. There's a 0,/ after the track # for both songs and for both songs the artist comes up even though only one has a (Multiple Artists) value.

MrC:
it appears MC18 for the Mac still has problems with the escape character in the expression language.  So use this until it gets fixed:

[Track #] ifelse(isequal([album artist (auto)], Multiple Artists, 7),  [artist] -) [Name]

Navigation

[0] Message Index

[#] Next page

Go to full version