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+
Error using suball and maxdayage
Re: Error using suball and maxdayage
I'd guess it's a permissions issue.
EDIT: Fixed with r2268.
EDIT: Fixed with r2268.
Re: Error using suball and maxdayage
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
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
I see you fixed it, what was the issue ?rednoah wrote:I'd guess it's a permissions issue.
EDIT: Fixed with r2268.
Re: Error using suball and maxdayage
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
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.