Page 1 of 1

Fetch subtitles script fails with "FileNotFoundException"

Posted: 01 Nov 2014, 21:17
by Jonesy
Filebot 4.0
OS X 10.6.8 Server

I wanted to try out Filebot's scripting and automation, particularly for fetching subtitles. I used the sample scripts that rednoah provided but running the script in the Terminal failed with errors. Can anyone see why this script is failing?

I entered the following script in the Terminal:

Code: Select all

filebot -script fn:suball /Volumes/Media/Media Downloads -non-strict --def maxAgeDays=7
There was about a 30 second wait, and then the following errors appeared in the Terminal:
FileNotFoundException: https://raw.githubusercontent.com/fileb ... all.groovy
java.io.FileNotFoundException: https://raw.githubusercontent.com/fileb ... all.groovy
at net.sourceforge.filebot.web.WebRequest.fetch(WebRequest.java:140)
at net.sourceforge.filebot.web.WebRequest.fetchIfModified(WebRequest.java:118)
at net.sourceforge.filebot.web.CachedResource.fetchData(CachedResource.java:32)
at net.sourceforge.filebot.web.CachedResource.fetchData(CachedResource.java:11)
at net.sourceforge.filebot.web.AbstractCachedResource.fetch(AbstractCachedResource.java:133)
at net.sourceforge.filebot.web.AbstractCachedResource.get(AbstractCachedResource.java:78)
at net.sourceforge.filebot.cli.ArgumentProcessor$DefaultScriptProvider.fetchScript(ArgumentProcessor.java:236)
at net.sourceforge.filebot.cli.ScriptShell.runScript(ScriptShell.java:84)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:123)
at net.sourceforge.filebot.Main.main(Main.java:192)
Failure (?_?)
Entering "filebot -script fn:sysinfo" results in
FileNotFoundException: https://raw.githubusercontent.com/fileb ... nfo.groovy
java.io.FileNotFoundException: https://raw.githubusercontent.com/fileb ... nfo.groovy
at net.sourceforge.filebot.web.WebRequest.fetch(WebRequest.java:140)
at net.sourceforge.filebot.web.WebRequest.fetchIfModified(WebRequest.java:118)
at net.sourceforge.filebot.web.CachedResource.fetchData(CachedResource.java:32)
at net.sourceforge.filebot.web.CachedResource.fetchData(CachedResource.java:11)
at net.sourceforge.filebot.web.AbstractCachedResource.fetch(AbstractCachedResource.java:133)
at net.sourceforge.filebot.web.AbstractCachedResource.get(AbstractCachedResource.java:78)
at net.sourceforge.filebot.cli.ArgumentProcessor$DefaultScriptProvider.fetchScript(ArgumentProcessor.java:236)
at net.sourceforge.filebot.cli.ScriptShell.runScript(ScriptShell.java:84)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:123)
at net.sourceforge.filebot.Main.main(Main.java:192)
Failure (?_?)

Re: Fetch subtitles script fails with "FileNotFoundException

Posted: 02 Nov 2014, 03:22
by rednoah
The scripts are only really supported for the latest version of FileBot. The script repository for 4.0 and below doesn't exist anymore.

Also your command line is bad.

Re: Fetch subtitles script fails with "FileNotFoundException

Posted: 02 Nov 2014, 17:06
by Jonesy
rednoah wrote:The scripts are only really supported for the latest version of FileBot. The script repository for 4.0 and below doesn't exist anymore.

Also your command line is bad.
So there is no backwards compatibility with Filebot and no way to get the scripts to work? Damn.

The command line is bad? I copied it from the "sharing your CLI scripts" forum post. Or do you mean the path to the media folder. I think there should be a backslash in there.

Re: Fetch subtitles script fails with "FileNotFoundException

Posted: 02 Nov 2014, 17:28
by rednoah
1.
The scripts are not backwards compatible with v4.0 and older scripts are not forward compatible with v4.2+ so there's a break there. You're welcome to check out the GitHub repository and see if you can an older revision working.

2.
You don't see what's wrong with this here? Time for some basics. ;)

Code: Select all

/Volumes/Media/Media Downloads
@see viewtopic.php?f=4&t=1899

Re: Fetch subtitles script fails with "FileNotFoundException

Posted: 02 Nov 2014, 17:52
by Jonesy
rednoah wrote:1.
The scripts are not backwards compatible with v4.0 and older scripts are not forward compatible with v4.2+ so there's a break there. You're welcome to check out the GitHub repository and see if you can an older revision working.

2.
You don't see what's wrong with this here?

Code: Select all

/Volumes/Media/Media Downloads
@see viewtopic.php?f=4&t=1899
Alright, thanks, I'll dig around the GitHub repository.

And there should be a backslash in my path.

Code: Select all

/Volumes/Media/Media\ Downloads