Showing foreign and english movie title

Any questions? Need some help?
Post Reply
bloodysoul
Posts: 10
Joined: 10 Jun 2014, 14:45

Showing foreign and english movie title

Post 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
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Showing foreign and english movie title

Post 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}
:idea: Please read the FAQ and How to Request Help.
bloodysoul
Posts: 10
Joined: 10 Jun 2014, 14:45

Re: Showing foreign and english movie title

Post 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.
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Showing foreign and english movie title

Post by rednoah »

lang is only defined for subtitle files, so:

Code: Select all

{'.'+lang}
:idea: Please read the FAQ and How to Request Help.
Post Reply