Page 1 of 1

Showing foreign and english movie title

Posted: 08 Jul 2014, 16:44
by bloodysoul
I am having problems with foreign movie titles. I want to get the foreign title and the english one. I am using {n} and {primaryTitle}, but they seem to output the same title.
Here ist my movieFormat :

Code: Select all

MovieFormat="movieFormat=anarky/MOVIES/{n == primaryTitle ? n.upperInitial() : primaryTitle.upperInitial()+' ('+n.upperInitial()+')'} ({y})/{n == primaryTitle ? n.upperInitial().space('.') : primaryTitle.upperInitial().space('.')+'.(.'+n.upperInitial().space('.')+'.).'}.{y}.{vf}.{source}{if (ext == 'srt') '.'+lang}"
And here are some examples :
Tom yum goong (The Protector) (2005)
El Cuerpo (The Body) (2012)

Thanks for the help

Re: Showing foreign and english movie title

Posted: 08 Jul 2014, 19:04
by rednoah
{primaryTitle} is the movie title in English, while {n} is the movie title in the preferred language.

Maybe this?

Code: Select all

{info.OriginalName}

Re: Showing foreign and english movie title

Posted: 08 Jul 2014, 22:58
by bloodysoul
Thank you. That worked. Another question:

Is there a better alternative to

Code: Select all

{if (ext == 'srt') '.'+lang}
I want the language tag only on subtitles.

Re: Showing foreign and english movie title

Posted: 09 Jul 2014, 08:35
by rednoah
lang is only defined for subtitle files, so:

Code: Select all

{'.'+lang}