Page 1 of 1

How to handle foreign language titles (not original)?

Posted: 09 May 2014, 19:45
by Morgenstern72
I have a few movies in german language with german movie title in file name so I instantly know that this is not original language.

Problem: Filebot always renames to the english titel. I use the original title hack too, but in this case it's not about the original title but the need to keep the localized title.
Thats my format
Thank you for this hack :)

Is there any way to detect that {n} is the same as the original title and not use it twice (and not be picky about upper/lowercase)?
I use this format
../{n}{' ("'+net.sourceforge.filebot.WebServices.IMDb.scrape(imdbid, '''//SPAN[@class='title-extra']''').match('"(.+)"')+'")'} ({y}){' ['+fn.replaceAll(/(?i)directors|theatrical/,'$0 Cut').matchAll(/UNRATED|REMASTERED|EXTENDED|UNCUT|DIRECTORS.CUT|THEATRICAL.CUT/).join('][').upperInitial().lowerTrail()+'] '}[{vf}] [{ac}]/{n} ({y}) {vc}{' '+lang}

Example:
http://www.imdb.com/title/tt0406728/?ref_=fn_al_tt_5 Dungeons & Dragons: Wrath of the Dragon God
German title: Dungeons & Dragons - Die Macht der Elemente
File: Dungeons and Dragon 2 Die Macht der Elemente -> I have to choose "Dungeons & Dragons: Wrath of the Dragon God" from the imdb plugin -> the file gets the english title

Can I keep the localized title I have in my filename?

Re: How to handle foreign language titles (not original)?

Posted: 09 May 2014, 21:47
by rednoah
If you want German titles I'd use TheMovieDB and set Language Preference to German, then you can access the German title with {n} and the English/Original Title with {primaryTitle}

Re: How to handle foreign language titles (not original)?

Posted: 09 May 2014, 21:52
by Morgenstern72
rednoah wrote:If you want German titles I'd use TheMovieDB and set Language Preference to German, then you can access the German title with {n} and the English/Original Title with {primaryTitle}
Do you have any suggestion how I should sort my movies for this operation?
I have ~50% of english movies, 20% of genuine german movies, 10% of genuine foreign language but with german language and the rest is genuine french/spanish/serbian/brazilian/japanese/chinese....

At the moment I have sorted them by genre. I want to prepare them for XBMC since PVD just has a really ugly interface.
But even when I use XBMC for orting I prefer to have some sorting in the file structure too, just in case. This already gave me a headache with PVD because of the different languages :(

Re: How to handle foreign language titles (not original)?

Posted: 09 May 2014, 22:02
by rednoah
Different languages will kill those scrapers. Genre folders and the likes doesn't matter, but the movie folder must be named exactly like in TheMovieDB. So you mustn't use IMDb. Use the standard format {n} (with English Language Preference) though {primaryTitle} will probably work as well.

Here's some examples:
http://www.filebot.net/forums/viewtopic.php?f=5&t=2

The Automated Media Center Defaults format expressions should definitely work.