Getting album title and year from filepath

Getting year from filepath (keep in mind NOT filename)
And also getting title from filepath

Y:\muziek\Te verwerken muziek\Kuschelrock Complete Flac Collection\Kuschelrock Volume 1-33 flac\KuschelRock 01 [2CD] (1987)\CD 1\

I'm interessed in KuschelRock 01 as album title and in 1987 as year.

Filepath has always same length only changes into \cd2 or \cd3 and the number of the record of course (goes to 33, so we're good with 2 characters)

You can use Convert Filename -> Tag (yes I know, you want the filepath)
(ALT + 2)

and then enter this Format string:
%album% %album% %dummy% (%year%)\%dummy%\%track% - %title%

image

If you don't want the track-number and title you can replace the last two placeholders with %dummy% too.

Explanation:
The first %album% get KuschelRock
The second %album% get the additional 01
The first %dummy% get [2CD]
(%year%) get 1987
The second %dummy% get CD 1
%track% would contain anything before the -
%title% would contain everything after the -

The length of your filepath does not have to be always the same. You have to check if the %dummy% placeholder and the space separators matches your existing parts in the filepath, including the backslashes.

The big advantage using the Convert Filename -> Tag is the Preview.
(The fields above the button Preview to be exact).
You can immediately see if your placeholders matches your filepath and contains the wanted parts.

2 Likes

oh allright, that makes sense, didn't know it worked for filepath also and that it works from the directory, that was my mistake, I tried it myself and failed

thx, you just save me a whole lot of work

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.