Page 1 of 1

Error using suball and maxdayage

Posted: 23 Jun 2014, 14:39
by f3bruary
Hey rednoah,

So I've been working on that script and using the following command now:

thegibson> filebot -script fn:suball --def maxAgeDays=20 --lang nl --output srt /volume1/video/series

and it works fine, there's just this weird issue that happen when I scan the movies dir instead:


thegibson> filebot -script fn:suball --def maxAgeDays=20 --lang nl --output srt /volume1/video/movies
NullPointerException: java.lang.NullPointerException
java.lang.NullPointerException
at net.filebot.cli.ScriptShellMethods$1.preVisitDirectory(ScriptShellMethods.java:166)
at net.filebot.cli.ScriptShellMethods$1.preVisitDirectory(ScriptShellMethods.java:160)
at net.filebot.cli.ScriptShellMethods.getMediaFolders(ScriptShellMethods.java:160)
at net.filebot.cli.ScriptShellMethods.eachMediaFolder(ScriptShellMethods.java:181)
at Script1.run(Script1.groovy:38)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:60)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:81)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:108)
at net.filebot.Main.main(Main.java:192)
Failure (°_°)

exact same command, just a different folder.
uname -a: Linux thegibson 2.6.32.12 #4458 Thu Apr 3 10:33:17 CST 2014 armv5tel GNU/Linux synology_88f6282_112+

Re: Error using suball and maxdayage

Posted: 23 Jun 2014, 14:50
by rednoah
I'd guess it's a permissions issue.

EDIT: Fixed with r2268.

Re: Error using suball and maxdayage

Posted: 23 Jun 2014, 14:52
by f3bruary
it works fine with:

filebot -get-missing-subtitles --lang nl --output srt -r /volume1/video/movies

it's just the -script fn:suball --def maxAgeDays=20 that makes it crash

Re: Error using suball and maxdayage

Posted: 23 Jun 2014, 15:20
by f3bruary
rednoah wrote:I'd guess it's a permissions issue.

EDIT: Fixed with r2268.
I see you fixed it, what was the issue ?

Re: Error using suball and maxdayage

Posted: 23 Jun 2014, 16:16
by rednoah
Still a permission issue. Somewhere you got a folder where the java process doesn't have permission to list files. Instead of crashing it will no ignore these folders.

Re: Error using suball and maxdayage

Posted: 23 Jun 2014, 16:57
by f3bruary
hmm I see. You have any idea how I can find out which folder(s) or file(s) causes this ? I tried running filebot as root with the same result.