INTERACT FORUM

More => Old Versions => JRiver Media Center 26 for Windows => Topic started by: herr_schneider on December 22, 2021, 01:19:49 pm

Title: File Renaming using contents of List Type tags
Post by: herr_schneider on December 22, 2021, 01:19:49 pm
Hello,

I thought this should work, but does not seem: have a file moved to a folder with a pattern that is supposed to contain all values from the Genre Tag. My Genre Tag is set up so that it may be a list, delimited by ; (i.e. "E-Musik;Balletsuite")

My idea was to do a mass renaming using a pattern such as "[Composer]/Clean(Replace(ListFormat([Genre],0),;,/, ),3)/[work]..." Unfortunately MC will just return the first item found in the [Genre] tag... : "COMPOSER/E-Musik/WORK" instead of the expected
"COMPOSER/E-Musik, Balletsuite/WORK"

Did I misunderstand the concept here?

Thanks, Marcus
Title: Re: File Renaming using contents of List Type tags
Post by: marko on December 22, 2021, 11:13:40 pm
Try:
Code: [Select]
[Composer]/Clean(Replace([Genre,0],;,/,/ ),3)/[work]
Not been able to test the above, but should work. Watch out for anything with an empty genre tag... not too sure what would happen there.

also...
are you certain you want to do this?

Using your example above, "COMPOSER/E-Musik, Balletsuite/WORK":

When displaying your genre tag, E-Musik and Balletsuite will be listed as exclusive items, however, unless you can be sure that the actual tag data is identical across the board, you could end up with frustrating results, such as two different folders:
"COMPOSER/E-Musik, Balletsuite/WORK"
"COMPOSER/Balletsuite, E-Musik/WORK"

You might need to put a listsort() function into the expression if this will be a problem.