Possible to fetch french titles used in Quebec?

Any questions? Need some help?
Post Reply
Rhialto
Posts: 3
Joined: 13 Jan 2017, 04:46

Possible to fetch french titles used in Quebec?

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

Re: Possible to fetch french titles used in Quebec?

Post 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.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Possible to fetch french titles used in Quebec?

Post 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]
:idea: Please read the FAQ and How to Request Help.
Rhialto
Posts: 3
Joined: 13 Jan 2017, 04:46

Re: Possible to fetch french titles used in Quebec?

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

Re: Possible to fetch french titles used in Quebec?

Post by rednoah »

Yes, it's in the GUI as well. The latest revision jar has been uploaded to the usual place. See FAQ. ;)
:idea: Please read the FAQ and How to Request Help.
Rhialto
Posts: 3
Joined: 13 Jan 2017, 04:46

Re: Possible to fetch french titles used in Quebec?

Post by Rhialto »

Works perfect! Now I see TheMovieDB is not 100% accurate all the time but that's another story. ;)

Thank you!
filebotfrca
Posts: 6
Joined: 01 May 2017, 03:31

Re: Possible to fetch french titles used in Quebec?

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

Re: Possible to fetch french titles used in Quebec?

Post by rednoah »

Please give an example (i.e. TheMovieDB link) where this is the case.
:idea: Please read the FAQ and How to Request Help.
filebotfrca
Posts: 6
Joined: 01 May 2017, 03:31

Re: Possible to fetch french titles used in Quebec?

Post 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
filebotfrca
Posts: 6
Joined: 01 May 2017, 03:31

Re: Possible to fetch french titles used in Quebec?

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

Re: Possible to fetch french titles used in Quebec?

Post 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
:idea: Please read the FAQ and How to Request Help.
filebotfrca
Posts: 6
Joined: 01 May 2017, 03:31

Re: Possible to fetch french titles used in Quebec?

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

Re: Possible to fetch french titles used in Quebec?

Post by rednoah »

e.g. assuming n is the English name:

Code: Select all

any{[localize.'Canadian French'.n] - n}{[localize.'French'.n]}[0]
:idea: Please read the FAQ and How to Request Help.
filebotfrca
Posts: 6
Joined: 01 May 2017, 03:31

Re: Possible to fetch french titles used in Quebec?

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

Re: Possible to fetch french titles used in Quebec?

Post 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. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply