Page 1 of 1

Filebot Node - Renaming & Sorting

Posted: 15 Apr 2020, 12:20
by horrebb
Hello!

I have been trying for a long time to sort my movies based on the contry of origine.

I organise my movie this way:
All English Spoken language goes into volume1/movies/englishmovies/
All French Spoken language goes into volume1/movies/frenchmovies/
Same goes for Spanish, German movies

As of now Filebot Node is moving English movies correctly but I have to move the french movies manually because they will be added into the englishmovies folder.

Here are the settings I am using :

Input Folder : /volume1/Downloads
Output Folder : /

Movie Format :

Code: Select all

volume1/Movies/englishmovies/{n} ({y}).{vf}
Series Format :

Code: Select all

volume2/TV Shows/{n}/{n} Season {s}/{n} {sxe}.{vf}
Anime Format :

Code: Select all

volume2/Anime/{n}/{n} Season {s}/{n} {sxe}.{vf}

my goal is to change the movie format like this :

Code: Select all

volume1/Movies/"LANGUAGE"movies/{n} ({y}).{vf}
Thank you for your help

Re: Filebot Node - Renaming & Sorting

Posted: 15 Apr 2020, 12:29
by rednoah
You could try using {info.productionCountries} for some kind of condition is probably a good start:

Code: Select all

{'US' in info.productionCountries ? 'English' : 'Foreign'} Movies
{info.spokenLanguages} might work as well:

Code: Select all

{languages[0].name} Movies

:!: For the sake of simplicity, this example code does not take the possible nonexistence of binding values into account.

Re: Filebot Node - Renaming & Sorting

Posted: 15 Apr 2020, 13:10
by horrebb
rednoah wrote: 15 Apr 2020, 12:29 You could try using {info.productionCountries} for some kind of condition is probably a good start:

Code: Select all

{'US' in info.productionCountries ? 'English' : 'Foreign'} Movies
{info.spokenLanguages} might work as well:

Code: Select all

{languages[0].name} Movies

:!: For the sake of simplicity, this example code does not take the possible nonexistence of binding values into account.
Thank you for your help!

By changing my code :

Code: Select all

volume1/Movies/{languages[1].name}movies/{n} ({y}).{vf}
I have this output :

volume1/Movies/Englishmovies/{n} ({y}).{vf}

Is there a way to change English to english?

I also tried the first option you provided and it look more consistent:

Code: Select all

volume1/Movies/{'FR' in info.productionCountries ? 'french' : 'english'}movies/{n} ({y}).{vf}