INTERACT FORUM

Please login or register.

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

Author Topic: File Renaming using contents of List Type tags  (Read 1941 times)

herr_schneider

  • Junior Woodchuck
  • **
  • Posts: 74
File Renaming using contents of List Type tags
« 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
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9143
Re: File Renaming using contents of List Type tags
« Reply #1 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.
Pages: [1]   Go Up