Page 1 of 1

Possible to fetch french titles used in Quebec?

Posted: 13 Jan 2017, 05:17
by Rhialto
In preferences I select French and fetch from TheMovieDB but I get the title from Europe though TheMovieDB know the title used in Quebec.

Let me show you one example. When I search for the movie Inside Out on TheMovieDB website, this is what I get:

Image

The poster may use the French Vice-Versa title used in Europe but you can see the main title shown to me Sens dessus dessous is the one used in Quebec and I would like to tell FileBot to use this one.

Is it possible? Is it a matter of adding a new flag Image for this to work?

Re: Possible to fetch french titles used in Quebec?

Posted: 13 Jan 2017, 06:00
by rednoah
There's a similar requests for Mexican Spanish and Transliterated Japanese language preferences. I'm somewhat reluctant to add "special languages" that are only supported by a single database though.

I'll have a look and see what can be done.

Re: Possible to fetch french titles used in Quebec?

Posted: 13 Jan 2017, 21:39
by rednoah
r4714 adds support for Canadian French.

e.g.

Code: Select all

filebot -rename Inside.Out.2015.mp4 --db TheMovieDB --lang "Canadian French"

Code: Select all

Rename movies using [TheMovieDB]
Auto-detect movie from context: [Inside.Out.2015.mp4]
[MOVE] Rename [Inside.Out.2015.mp4] to [Sens dessus dessous (2015).mp4]

Re: Possible to fetch french titles used in Quebec?

Posted: 13 Jan 2017, 22:40
by Rhialto
rednoah wrote:r4714 adds support for Canadian French.
Nice! Does this show up in GUI? I'm using FileBot on Windows.

Is r4714 a nightly build? Are they compiled? I would be happy to test this.

Re: Possible to fetch french titles used in Quebec?

Posted: 14 Jan 2017, 07:06
by rednoah
Yes, it's in the GUI as well. The latest revision jar has been uploaded to the usual place. See FAQ. ;)

Re: Possible to fetch french titles used in Quebec?

Posted: 14 Jan 2017, 16:54
by Rhialto
Works perfect! Now I see TheMovieDB is not 100% accurate all the time but that's another story. ;)

Thank you!

Re: Possible to fetch french titles used in Quebec?

Posted: 01 May 2017, 03:37
by filebotfrca
Hi,

Is it possible to have filebot fetch all the info from --lang "canadian french" first
And if it doesn't find any, then it would fetch info from --lang "french" ?????

Currently, if no info is found in canadien french, it default to english.
Kind of annoying because most of the french titles are the same in canadian french except for a few exceptions...

Also, for collection info, even when fetching "canadian french", it results the "french" collection info...

Re: Possible to fetch french titles used in Quebec?

Posted: 01 May 2017, 03:41
by rednoah
Please give an example (i.e. TheMovieDB link) where this is the case.

Re: Possible to fetch french titles used in Quebec?

Posted: 01 May 2017, 15:58
by filebotfrca
https://www.themoviedb.org/movie/10865- ... uage=fr-CA

Title in canadian french is : Atlantis: l'Empire Perdu
Title in french is: Atlantide, l'Empire Perdu

Collection in canadian french is : Atlantis - Saga
Collection in french is : L'Atlantide - Saga

Re: Possible to fetch french titles used in Quebec?

Posted: 01 May 2017, 16:20
by filebotfrca
Also another example where there is no canadian french info because it's the same as the french info
https://www.themoviedb.org/movie/15969- ... uage=fr-CA

fetch in canadian french, returned title = The Return of Jafar
fetch in french, returned title = Le Retour de Jafar

Collection info should be the same in canadian french and french, there would be no point in creating different info.

Re: Possible to fetch french titles used in Quebec?

Posted: 01 May 2017, 21:09
by rednoah
That's just how TheMovieDB API returns the results I guess. FileBot will request fr-CA information but can't confirm that that's actually what it got.


However, you can just use the {localize} to dynamically localize information in the format to make things work the way you want:

Code: Select all

{n} - {localize.French.n} - {localize.'Canadian French'.n}
@see viewtopic.php?t=3761

Re: Possible to fetch french titles used in Quebec?

Posted: 02 May 2017, 00:03
by filebotfrca
rednoah wrote:That's just how TheMovieDB API returns the results I guess. FileBot will request fr-CA information but can't confirm that that's actually what it got.

However, you can just use the {localize} to dynamically localize information in the format to make things work the way you want:

Code: Select all

{n} - {localize.French.n} - {localize.'Canadian French'.n}
@see viewtopic.php?t=3761
Ok

Would there be a way to compare the returned info with the english one.
If it matches, it would mean that there was no "canadien french".
If it does not match, it would mean that there is "canadian french" info and that it can be kept.
If not, it would need to fetch using the standard french instead...

That would not work all the time, some movies have the same name in english and canadian french...
https://www.themoviedb.org/movie/277834 ... uage=fr-CA

I would like to automate the process...
Maybe with a script but I know nothing about coding.

Re: Possible to fetch french titles used in Quebec?

Posted: 02 May 2017, 03:07
by rednoah
e.g. assuming n is the English name:

Code: Select all

any{[localize.'Canadian French'.n] - n}{[localize.'French'.n]}[0]

Re: Possible to fetch french titles used in Quebec?

Posted: 06 May 2017, 10:56
by filebotfrca
rednoah wrote:e.g. assuming n is the English name:

Code: Select all

any{[localize.'Canadian French'.n] - n}{[localize.'French'.n]}[0]
It worked with the code written like this

Code: Select all

{localize.'Canadian French'.n - n}{localize.'French'.n}
But I realised it is not the solution.
It happens that the Canadian French title is the same as the English one and I will end up with the wrong title...
https://www.themoviedb.org/movie/277834 ... uage=fr-CA

Moana = Original Title
Moana = Canadian French Title
Vaiana, la légende du bout du monde = French Title

Should I worked with the TMDB api to change the way it works...
If I request a title FR-?? in and that it does not exist, then it should returned the title in FR-FR instead of ENG?

Re: Possible to fetch french titles used in Quebec?

Posted: 06 May 2017, 11:10
by filebotfrca

Re: Possible to fetch french titles used in Quebec?

Posted: 06 May 2017, 11:48
by rednoah
FR_CA defaulting to FR would make sense in general. But individual may disagree and prefer the current behaviour. Also, TheMovieDB may not be interested in implementing corner cases like this, where there's no "right" or "wrong" answer.

e.g. French Canadian title that is the same in English:
https://pastebin.com/mtEZwFXY

e.g. French Canadian title the defaulted to English:
https://pastebin.com/aM9mP5k4

There's effectively no way to tell the difference as far as I can tell. The first thing you can do is sign up to TheTVDB and add all the missing fr-CA titles. That'll help you and everyone else. ;)