What's wrong with my naming scheme?

Support for Windows users
Post Reply
chrisdukes
Posts: 7
Joined: 11 Dec 2015, 01:36

What's wrong with my naming scheme?

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

Re: What's wrong with my naming scheme?

Post 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?
:idea: Please read the FAQ and How to Request Help.
chrisdukes
Posts: 7
Joined: 11 Dec 2015, 01:36

Re: What's wrong with my naming scheme?

Post by chrisdukes »

Sorry for the vague post:
Image

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
Last edited by chrisdukes on 11 Apr 2018, 02:22, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: What's wrong with my naming scheme?

Post by rednoah »

:idea: 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.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: What's wrong with my naming scheme?

Post 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})
chrisdukes
Posts: 7
Joined: 11 Dec 2015, 01:36

Re: What's wrong with my naming scheme?

Post by chrisdukes »

Naive question, where could I have learned this? I just started going through the documentation.
rednoah wrote: 10 Apr 2018, 17:03 :idea: 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.
Last edited by chrisdukes on 11 Apr 2018, 02:55, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: What's wrong with my naming scheme?

Post 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.
:idea: Please read the FAQ and How to Request Help.
chrisdukes
Posts: 7
Joined: 11 Dec 2015, 01:36

Re: What's wrong with my naming scheme?

Post by chrisdukes »

Cool. Thanks for the help.
Post Reply