INTERACT FORUM

Please login or register.

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

Author Topic: Help with Fill Property's from File name. Wanting to tag some image files  (Read 469 times)

mvandyke

  • World Citizen
  • ***
  • Posts: 159

Having some challenges here that I can quite figure out and thought I would ask the experts.

Using File Property's from File name.

All of my files follow this format

F:\Music Audio\Music HD\[artist] -

After the [artist] - there is some addition data that I don't want to deal with now and there could be 2 or 3 directories afterwards but it won't pull artist out consistently when there may be additional directories after the definition above.

I basically want to "forget" about all of the other data past the definition above working from left to right on the file path but it seems to work from right to left

Any assistance would be appreciated
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2619
Re: Help with Fill Property's from File name. Wanting to tag some image files
« Reply #1 on: February 10, 2021, 11:16:19 am »

Funny tool...

Just "[artist] - " should work just the same as what you have for the single-folder files; MC seems to parse from the end of the path, so it ignores what you have before the [artist] tag. You might as well have "Well:\Look\at\that!\[artist] - " and it still works...

For the files with more subfolders, try "[artist] - \ " (ending in space-slash-space). This should make them work, but it won't work anymore with the single-folder ones.

I don't think the tool can be used for both cases at the same time.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Help with Fill Property's from File name. Wanting to tag some image files
« Reply #2 on: February 10, 2021, 11:17:17 am »

I think you can use empty field:
F:\Music Audio\Music HD\[artist] - []
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2619
Re: Help with Fill Property's from File name. Wanting to tag some image files
« Reply #3 on: February 10, 2021, 11:19:46 am »

You can, but still won't capture correctly when there are extra subfolders. Looks like it counts the slashes from the end to know which path component to compare.
"[artist] - " captures "\\any\share\path\artist - album\filename.mp3"
"[artist] - \ " captures "\\any\share\path\artist - album\sub1\filename.mp3"
"[artist] - \ \ " captures "\\any\share\path\artist - album\sub1\sub2\filename.mp3"
"[artist] - \ \ \ " captures "\\any\share\path\artist - album\sub1\sub2\sub3\filename.mp3"

And so on. The tool counts the slashes to backtrack until the required path element (minus the last slash, which is not part of the Directory path).
Logged

mvandyke

  • World Citizen
  • ***
  • Posts: 159
Re: Help with Fill Property's from File name. Wanting to tag some image files
« Reply #4 on: February 10, 2021, 12:48:38 pm »

Nothing worked in one step so I had to do multiple steps as follow:

Created playlist with All files
Ran File Property from File name with the following on directories:

F:\music Audio\Music HD\[artist] - \ \ \
Once those files were updated I removed them from the playlist and ran:
F:\music Audio\Music HD\[artist] - \ \
Removed those files from the playlist and ran
F:\music Audio\Music HD\[artist] -

It seems I should have been able to do this on one step as there is a standard but this feature has a little uniqueness to it.

Thanks for all of your help on this appreciate the teams response!

Matt

Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2619
Re: Help with Fill Property's from File name. Wanting to tag some image files
« Reply #5 on: February 10, 2021, 01:18:18 pm »

You could also use Expression Language, thus multiplying your problems by 3  ;D

Code: [Select]
=listitem(replace(listitem(replace([filename],\,;),3),/ -/ ,;),0)
would have worked for all files (directly on the [Artist] tag, not on the F12 tool)
Logged
Pages: [1]   Go Up