Groovy & Filebot Help

Any questions? Need some help?
Post Reply
lyonss3
Posts: 6
Joined: 20 Jan 2012, 19:50

Groovy & Filebot Help

Post by lyonss3 »

For the life of me I cannot figure out groovy & filebot. My goal is to set up an automatic process that looks up my TV Shows in a folder & automatically renames them. Can someone point me in the right direction of a tutorial for this? How do I install filebot within groovy? I have spent hours using the beginners guide to groovy, but all I have managed to accomplish is I have groovy & groovyConsole installed but don't have filebot installed, meaning I can't use the filebot command. I would really appreciate any help. Thank you.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Groovy & Filebot Help

Post by rednoah »

No need to get complicated. FileBot already bundles a complete Groovy runtime.

So:
1. Setup: Install FileBot (on OSX you'll need to set up the path as well)
2. Run: filebot -script "http://filebot.sf.net/scripts/renall.groovy" <options> <folder>
(or check out the other scripts listed here in the forums for more advanced stuff)
:idea: Please read the FAQ and How to Request Help.
lyonss3
Posts: 6
Joined: 20 Jan 2012, 19:50

Re: Groovy & Filebot Help

Post by lyonss3 »

Thank you. How do I set up the path in OSX?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Groovy & Filebot Help

Post by rednoah »

Run FileBot.app/Contents/MacOS/install.sh
:idea: Please read the FAQ and How to Request Help.
lyonss3
Posts: 6
Joined: 20 Jan 2012, 19:50

Re: Groovy & Filebot Help

Post by lyonss3 »

Thank you very much! You're a saint.
lyonss3
Posts: 6
Joined: 20 Jan 2012, 19:50

Re: Groovy & Filebot Help

Post by lyonss3 »

Ok so I have filebot working now, but I'm not quite there yet. After new TV shows are downloaded I have hazel copying them to a separate folder, titled "MediaSorting" (to prevent missing file issues in Transmission).

I then want to run a filebot command that will watch this MediaSorting folder, recognize when a new show is added, rename it correctly, and sort it into a folder directory of Show/Season #/(episode).
lyonss3
Posts: 6
Joined: 20 Jan 2012, 19:50

Re: Groovy & Filebot Help

Post by lyonss3 »

I get this in terminal...

filebot -script /Users/(me)/Documents/housekeeping.groovy /Users/(me)/MediaSorting

ClassNotFoundException: java.nio.file.FileVisitor
java.lang.ClassNotFoundException: java.nio.file.FileVisitor
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
at java.lang.Class.getDeclaredFields(Class.java:1743)
at org.codehaus.groovy.vmplugin.v5.Java5.configureClassNode(Java5.java:321)
at org.codehaus.groovy.ast.ClassNode.lazyClassInit(ClassNode.java:264)
at org.codehaus.groovy.ast.ClassNode.getUnresolvedSuperClass(ClassNode.java:976)
at org.codehaus.groovy.ast.ClassNode.getUnresolvedSuperClass(ClassNode.java:971)
at org.codehaus.groovy.control.ResolveVisitor.checkCyclicInheritence(ResolveVisitor.java:1302)
at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1277)
at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:148)
at org.codehaus.groovy.control.CompilationUnit$8.call(CompilationUnit.java:601)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:839)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:544)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:493)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:306)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:287)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:267)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:214)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.getScriptClass(GroovyScriptEngineImpl.java:337)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:109)
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:103)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:232)
at net.sourceforge.filebot.cli.ScriptShell.<init>(Unknown Source)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (?_?)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Groovy & Filebot Help

Post by rednoah »

In 2.4 scripting requires Java 7. Someone posted how to install it just yesterday. Normal cmdline operations should work so u can use Automator as well.
:idea: Please read the FAQ and How to Request Help.
Post Reply