INTERACT FORUM
More => Old Versions => Media Center 11 (Development Ended) => Topic started by: efoc on December 03, 2006, 03:49:56 am
-
Hi,
I am going to rip my whole cd collection to HD (btw:I bought MC12 yesterday). One question about this:
I'd like to have the following strcture on my HD:
Base Path: M:\mp3\
and then:
(Multiple Artists)
A
B
C
.
.
.
Z
Is it possible to set the directory rule to get the structure above. The rule should be "like this":
if [Album Artist (auto)]=(Multiple Artists) then
(Multiple Artists)\[Album]
else
Mid([Album Artist (auto)],0,1)\[Album Artist (auto)]\[Album]
If this is possible with a directory rule, maybe someone could do me a favour and write down the correct syntax for this.
Many thanks in advance
brgds - efoc
-
Directory rule:
if(isequal([album artist (auto)],multiple artists,8),[album artist (auto)]\[album],mid([album artist (auto)],0,1)\[album artist (auto)]\[album]
enjoy :)
-
Marko,
many thanks, it works perfectly :-)
2 short questions about the syntax in isequal([album artist (auto)],multiple artists,8):
1) I only know about the following Compare types:
0: case-sensitive string compare for equality
1: case-insensitive string compare for equality
2: numeric compare for equality
3: numeric less than
4: numeric less than or equal to
5: numeric greater than
6: numeric greater than or equal to
but what is 8 ?
2) don't I need a closing ) bracket for the if clause if(isequal..... ?
Have a nice weekend - efoc
-
re. compare types:
mode 7 = "substring"
mode 8 = "substring (no case)"
They are brilliant additions that open up a shedload of expression based possibilities.
read more here: http://yabb.jriver.com/interact/index.php?topic=32964.msg226899#msg226899
re. closing bracket...
Yeah, it should be there. I missed it when I hit ctrl+c. DOH!
I'm guessing it works without because there's only a single IF statement open, and the evaluator has reached the end of the expression, and is not expecting anything else to look for anyway.