INTERACT FORUM
More => Old Versions => Media Center 12 (Development Ended) => Topic started by: darichman on January 31, 2008, 08:08:28 pm
-
Here's what I want to do....
If [Album Artist (Auto)] = (Multiple Artists)
Music\[Album Genre]\#Compilations\[Album]
If [Album Artist (Auto)] does not = (Multiple Artists)
Music\[Album Genre]\[Album Artist (Auto)]\[Album]
The expression
if(isequal([Album Artist /(Auto/)],/(Multiple Artists/),7),Music\[Album Genre]\#Compilations\[Album],Music\[Album Genre]\[Album Artist (Auto)]\[Album])
works fine when I put it into a calculated field to display in a pane (I get a nice output of Music\Album Genre\Album Artist\Album)
But it goes crazy when used in "Rename Files from Properties":
It outputs to X:\0,Music\Album Genre\#Compilations\Album Artist,Music\Album Genre\Album Artist .... not what I'm after!!
To the expression gurus, what's wrong with my expression :o
...and why does it format correctly when used as a field but not as a rename expression?
(to J River: please please let "rename files from properties" treat "\" as a directory divider, not convert it to an underscore! This would simplify my renaming by expressions a million fold!!)
-
I think you may have hit a bug!
I've never needed to escape the brackets inside the actual field name, but, even removing those escape characters I still see the same results as you do.
As far as I can tell, the brackets around "(Multiple Artists)" are not being escaped by the forward slash.
It works if you do a sub-string search on "multiple" instead, using 8 to make it case insensitive:
if(isequal([Album Artist (Auto)],multiple,8),Music\[Album Genre]\#Compilations\[Album],Music\[Album Genre]\[Album Artist (Auto)]\[Album])
-marko.
-
Thanks Marko, good idea :)
That will do the job nicely until we find a way to sort this out!
-
Bump...
This is still around. Seems to affect rename expressions using fields that contain parentheses
...like Album Artist (Auto)
-
Hey here is a couple I use, they work perfectly for me. I just use the pull down in rename, move and select the one I want for what I am doing. I think you should be able to model one of these to do what you need.
If(IsEqual(AlbumArtist(), Multiple Artists), if(IsEqual([Genre], Classical), Classical\[Album], Various Artists\[Album]), if(IsEqual([Genre], Classical), Classical\[Artist]\[Album], [Artists (grouped)]\[Artist]\[Album]))
Genre
If(IsEqual(AlbumArtist(), Multiple Artists), [Genre]\Various Artists\[Album], [Genre]\[Artist]\[Album])
Classical
if(IsEqual([Genre], Classical), Classical\[Album], Various Artists\[Album])
if(IsEqual([Genre], Classical), Classical\[Artist], [Artists (grouped)]\[Artist]\[Album])
Country
If(IsEqual(AlbumArtist(), Multiple Artists), if(IsEqual([Genre], Country), Country\[Album], Various Artists\[Album]), if(IsEqual([Genre], Country), Country\[Artist]\[Album], [Artists (grouped)]\[Artist]\[Album]))
if(IsEqual([Genre], Country), Country\[Album], Various Artists\[Album])
if(IsEqual([Genre], Country, Country\[Artist], [Artists (grouped)]\[Artist]\[Album])
The problem I had with the one below that I got from someone else on the forum is than any artist that started with an M also got classified as a Multiple Artists.
If(IsEqual(Mid([album artist (auto)]), M),Various Artists\[Album], [Artists (grouped)]\[Artist]\[Album])