2020-01-21, 20:55
First off, thank you for the great tool. It allows me to keep my movie database sane, and also satisfies my OCD character.
I'm trying to figure out how to do conditional renaming of the following two kinds:
1. If the original language is in a language I speak (en, fr, hi, ta), keep the original title, otherwise use the English title.
2. If there is more than one director, print the first two directors names, else print only the first director.
Currently, I have something like this:
${originalTitle} ${- ,edition,} [${directors[0].name},${ ,directors[1].name,,} ${year}]
... but I need to manually shift between ${originalTitle} and ${title}, and then do the renaming.
I realize there's JMTE and it's conditionals, but all my attempts at getting a "true" out of "${if ${language}='fr'}" failed. I've tried:
${if ${language}='fr'}${originalTitle}${else}${title}${end}
... but I always get a "false". (And I've checked that the ${language} tag is "fr" and not "French" or "fra".)
I'm trying to figure out how to do conditional renaming of the following two kinds:
1. If the original language is in a language I speak (en, fr, hi, ta), keep the original title, otherwise use the English title.
2. If there is more than one director, print the first two directors names, else print only the first director.
Currently, I have something like this:
${originalTitle} ${- ,edition,} [${directors[0].name},${ ,directors[1].name,,} ${year}]
... but I need to manually shift between ${originalTitle} and ${title}, and then do the renaming.
I realize there's JMTE and it's conditionals, but all my attempts at getting a "true" out of "${if ${language}='fr'}" failed. I've tried:
${if ${language}='fr'}${originalTitle}${else}${title}${end}
... but I always get a "false". (And I've checked that the ${language} tag is "fr" and not "French" or "fra".)