Page 1 of 1

[Resolved]UFC Script no longer working after Filebot +v4.1

Posted: 28 Oct 2014, 00:40
by angelblue05
I have a UFC script that runs automatically after SABnzbd downloads a UFC file. This is the first time since updating my Filebot to +v4.1 that I've used it and I can't figure out what is wrong. I'd greatly appreciate it if someone could help me figure this out.

Version: Windows 7, Filebot 4.5 (x64), JRE 8.0u25 (x64)
Sysinfo: http://pbrd.co/1v6BglX

My script:

Code: Select all

// PERSONALIZED SETTINGS
def movieDir      = new File("D:/UFC_Manual")
def movieFormat   = "T:/UFC/{movie}/{movie}"

// RENAME/MOVE/CLEAN
movieDir.getFolders{ it.hasFile{ it.isVideo() } }.each{ dir ->
   println "Processing $dir"
   def files = dir.listFiles{ it.isVideo() }
   
   // SORT UFC 
   def paths = '/' + rename(file:files, db:'tmdb', format:movieFormat) + '/'
   //def Film = paths.split("\\\\")
   //println Film + "this is Film Value"
   //println Film[2] + "This is Film Array value"
   //def fullpath = 'T:/UFC/' + Film[2]
   
   // CLEAN FOLDER
   executeScript('fn:cleaner', [:], [movieDir])
}
What I did: Since it failed to process the file in SABnzbd, I am now trying to run the script using CLI. At first, I was using Filebot v4.1, but then updated to the latest version of Filebot and JRE 8 to try and fix the issue. The file I am trying to process is found in "D:\UFC_Manual".

Error:

Code: Select all

C:\Users\Corruption>filebot -script "C:\MediaCenter\Scripts\Filebot\UFC_watched_
process.groovy"
FileNotFoundException: C:\MediaCenter\Scripts\Filebot\UFC_watched_process.groovy

java.io.FileNotFoundException: C:\MediaCenter\Scripts\Filebot\UFC_watched_proces
s.groovy
        at net.filebot.cli.ArgumentProcessor$DefaultScriptProvider.getScriptLoca
tion(ArgumentProcessor.java:173)
        at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:92)
        at net.filebot.Main.main(Main.java:183)
Failure (°_°)
Launch4j: Failed to run the given command.

Re: UFC Script no longer working after Filebot +v4.1

Posted: 28 Oct 2014, 02:14
by rednoah
Are you 100% sure that the path to the script is valid? It sure looks like that file doesn't exist.

[Resolved]Re: UFC Script no longer working after Filebot +v4

Posted: 28 Oct 2014, 04:51
by angelblue05
Yes, I verified twice. Here is the screenshot from the computer (instead of HDD (R:) it's actually HDD (C:) when I run the CLI locally). Very odd.
Screenshot: http://pbrd.co/1ze7q61

The file path is "C:\MediaCenter\Scripts\Filebot\UFC_watched_process .groovy"

OMG - I just noticed the spacing at the end of the name. :oops: Issue resolved.