Renamer conditional formatting doesn't work
Hi, I'm not yet sure if this is a bug or a java misunderstanding on my side.
I'm trying to set the movie renamer in version 3.1.6 to also insert the original title if it differs from the title and implemented it as:
${title}${if !title.equalsIgnoreCase(originalTitle)}${ (,originalTitle,)}${end} [${year}] ${ (,edition,)}
where it should look like:
- Apocalypse Now [1979].avi
- Alien [1979] (Director's Cut).mp4
- Amelie (Le fabuleux destin d'Amelie Poulain) [2001].mkv
However, currently the if statement appears to be true always, thereby always inserting the original title. Resulting in:
- Apocalypse Now (Apocalypse Now) [1979].avi
- Alien (Alien) [1979] (Director's Cut).mp4
- Amelie (Le fabuleux destin d'Amelie Poulain) [2001].mkv
How come, this string comparison
doesn't work as expected
title.equalsIgnoreCase(originalTitle)
and returns false always?
Help appreciated!
Edited by Joost