Page 1 of 1
What's wrong with my naming scheme?
Posted: 10 Apr 2018, 04:37
by chrisdukes
Code: Select all
Y:/Regions/{info.productionCountries}Noir/{10 * (int)(y/10)}s/{n} ({director}, {y})
I want it to look like:
Y:/Regions/
America/Noir/
1940s/A Stolen Life (Curtis Bernhardt, 1946).avi
Re: What's wrong with my naming scheme?
Posted: 10 Apr 2018, 06:47
by rednoah
1.
What exactly is not working?
2.
What have you tried so far?
3.
Are there any warnings that might hint at the problem?
4.
{info.productionCountries} gives me [US]. Do you want to replace US with America?
Re: What's wrong with my naming scheme?
Posted: 10 Apr 2018, 12:22
by chrisdukes
Sorry for the vague post:
Basically, Filebot will either NOT create a new name and leave that column blank, or it will create a new name based on the original file's parent folder.
Here is the path of the original file:
Y:\_Unsorted\Noir\1940s\A Stolen Life (Curtis Bernhardt, 1946).avi
Error Message:
Binding "director": java.lang.NullPointerException
Also, I know the scheme is missing the {info.ProductionCountries} tag, but I was having the same problem with it included, and I would like to know how to replace US with America. Thanks for noticing that.
Thanks,
Chris
Re: What's wrong with my naming scheme?
Posted: 10 Apr 2018, 17:03
by rednoah

You'll need to use
Movie Mode ➔ TheMovieDB when processing Movies, and
not Episode Mode.
The screenshot above clearly shows an Episode match, and not a Movie match. Bindings such as
{director} are undefined / null for Episode type objects and only work for Movie type objects.
Re: What's wrong with my naming scheme?
Posted: 11 Apr 2018, 01:12
by kim
Maybe you can do this ?
Code: Select all
{info.productionCountries*.replace(/US/,'America').join()}
Code: Select all
Y:/Regions/{info.productionCountries*.replace(/US/,'America/').join()}/Noir/{10 * (int)(y/10)}s/{n} ({director}, {y})
but it's only ok if ONLY US found
so maybe this ?
Code: Select all
Y:/Regions/{info.productionCountries.contains(/US/) ? 'America' : 'Non-America'}/Noir/{10 * (int)(y/10)}s/{n} ({director}, {y})
Re: What's wrong with my naming scheme?
Posted: 11 Apr 2018, 02:33
by chrisdukes
Naive question, where could I have learned this? I just started going through the documentation.
rednoah wrote: ↑10 Apr 2018, 17:03

You'll need to use
Movie Mode ➔ TheMovieDB when processing Movies, and
not Episode Mode.
I though the following just meant Filebot made a poor match:
rednoah wrote: ↑10 Apr 2018, 17:03
The screenshot above clearly shows an Episode match, and not a Movie match. Bindings such as
{director} are undefined / null for Episode type objects and only work for Movie type objects.
Re: What's wrong with my naming scheme?
Posted: 11 Apr 2018, 02:45
by rednoah
I don't know. This question has never really come up before. FileBot doesn't have that many buttons you can click. Just try a few of them and see what happens. A bit of healthy trial and error should make it quite obvious that you can't process movie files in episode mode or process episodes in movie mode. You'll get a feel for it if you play with it for a few minutes. You probably just got off on the wrong foot.
Re: What's wrong with my naming scheme?
Posted: 11 Apr 2018, 12:04
by chrisdukes
Cool. Thanks for the help.