INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Expressions using Album Artist (Auto)  (Read 1493 times)

darichman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1356
Expressions using Album Artist (Auto)
« 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!!)
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8967
Re: Expressions using Album Artist (Auto)
« Reply #1 on: February 01, 2008, 02:26:41 am »

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.

darichman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1356
Re: Expressions using Album Artist (Auto)
« Reply #2 on: February 01, 2008, 08:23:51 am »

Thanks Marko, good idea :)
That will do the job nicely until we find a way to sort this out!
Logged

darichman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1356
Re: Expressions using Album Artist (Auto)
« Reply #3 on: June 08, 2008, 09:46:34 pm »

Bump...

This is still around. Seems to affect rename expressions using fields that contain parentheses
...like Album Artist (Auto)
Logged

Robo983

  • World Citizen
  • ***
  • Posts: 196
Re: Expressions using Album Artist (Auto)
« Reply #4 on: June 13, 2008, 10:03:50 am »

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




Logged
Pages: [1]   Go Up