Hi,
Hoping someone can help me, been going round in circles trying to figure out.
I have a bunch of files with the name format :
Holiday [LNTG Muscle Mix] [45263224]
I am trying to use the Filename - Tag function to add a title for each file, ideally in the format :
Holiday [LNTG Muscle Mix]
The closest I have got is by using the following :
%title% [%title%] [%dummy%]
which gives me the Title :
Holiday LNTG Muscle Mix
Ideally, I would like to keep the square brackets around 'LNTG Muscle Mix'
Anyone know if this is possible?
Many thanks for any help
You could try
%title%] [%dummy%
to get at least the opening bracket.
You could then add the closing bracket with
Convert>Tag-Tag for TITLE
Format string: %title%]
If this is something that may happen to only some files, then you could filter for TITLEs with an opening but not closing bracket with:
%title% HAS [ AND NOT %title% HAS ]
1 Like
Thanks, this almost worked for me, but when adding the Format string : %title%], I get Invalid syntax response. Are square brackets not allowed here?
You can try to escape the special char ]
with
%TITLE%']'
From the documentation:
If you do not have to use the converter, you could also use an action of the type "Guess value"
Source: $regexp(%_filename%,'(.*) \[\d+\]',$1)
Target fields: %title%