INTERACT FORUM

More => Old Versions => JRiver Media Center 27 for Windows => Topic started by: mvandyke on February 10, 2021, 10:01:18 am

Title: Help with Fill Property's from File name. Wanting to tag some image files
Post by: mvandyke on February 10, 2021, 10:01:18 am
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
Title: Re: Help with Fill Property's from File name. Wanting to tag some image files
Post by: zybex 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.
Title: Re: Help with Fill Property's from File name. Wanting to tag some image files
Post by: lepa on February 10, 2021, 11:17:17 am
I think you can use empty field:
F:\Music Audio\Music HD\[artist] - []
Title: Re: Help with Fill Property's from File name. Wanting to tag some image files
Post by: zybex 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).
Title: Re: Help with Fill Property's from File name. Wanting to tag some image files
Post by: mvandyke 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

Title: Re: Help with Fill Property's from File name. Wanting to tag some image files
Post by: zybex 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)