File creation date is too far in the past!?

Support for Windows users
Post Reply
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

File creation date is too far in the past!?

Post by viking »

I had downloaded some movies many months ago and now wanted to find subtitles for them all;
I run the script:

Code: Select all

start filebot.cmd -script fn:suball "P:\Ultimate_Server\Movies" -non-strict

However, I then get an error:
"File creation date is too far in the past"

I therefore run this script:instead:

Code: Select all

start filebot.cmd -script fn:suball "P:\Ultimate_Server\Movies" -non-strict --def maxAgeDays=300
Now I get this error instead:
"Your maxAgeDays limit (300) is unreasonable"

To solve this, would I download the groovy script and modify this line:

Code: Select all

	if (maxAgeDaysLimit && (maxAgeDays == null || maxAgeDays.toDouble() > 30)) {
return ignore(f, "Your maxAgeDays limit ($maxAgeDays) is unreasonable")
to

Code: Select all

	if (maxAgeDaysLimit && (maxAgeDays == null || maxAgeDays.toDouble() > 300)) {
return ignore(f, "Your maxAgeDays limit ($maxAgeDays) is unreasonable")
(no complaints if creation date <300 days) ??

For this to work, I would then need to put the modified groovy script in my Filebot directory, right?
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: File creation date is too far in the past!?

Post by viking »

It didn't work.. Still get the message "File creation date is too far in the past"....
I guess that I need to increase:

Code: Select all

maxAgeTimeStamp = any{ now.time - ((maxAgeDays as double) * 24 * 60 * 60 * 1000L) as long }{ null }
How does this evaluate?

(e.g. What does "any" mean? What does 1000L mean?)
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: File creation date is too far in the past!?

Post by rednoah »

Just pass in --def maxAgeDaysLimit=n to disable that check. ;)
:idea: Please read the FAQ and How to Request Help.
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: File creation date is too far in the past!?

Post by viking »

rednoah wrote:Just pass in --def maxAgeDaysLimit=n to disable that check. ;)
Thanks, I tried this:

Code: Select all

start filebot.cmd -script fn:suball "P:\Ultimate_Server\Movies" -non-strict --def maxAgeDaysLimit=600
but I still got the error:
"File creation date is too far in the past"
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: File creation date is too far in the past!?

Post by rednoah »

Use your original command and add the option I gave you verbatim.

The enforce-limit option is a yes/no option and defaults to yes.
:idea: Please read the FAQ and How to Request Help.
viking
Power User
Posts: 128
Joined: 14 Jul 2013, 08:21

Re: File creation date is too far in the past!?

Post by viking »

rednoah wrote:Use your original command and add the option I gave you verbatim.

The enforce-limit option is a yes/no option and defaults to yes.
I thought that "n" referred to number of days. I added the option verbatim to my 1st original command:

Code: Select all

start filebot.cmd -script fn:suball "P:\Ultimate_Server\Movies" -non-strict --def maxAgeDaysLimit=n
However, same issue:
"File creation date is too far in the past"

The solution was to use my 2nd original command instead:

Code: Select all

start filebot.cmd -script fn:suball "P:\Ultimate_Server\Movies" -non-strict --def maxAgeDays=300 --def maxAgeDaysLimit=n
(i.e. also adding the option --def maxAgeDays=300)
Post Reply