Page 1 of 1

v4.1 broke my automation

Posted: 01 Jun 2014, 19:59
by trendykendy
Hi guys,
Complete amateur here, hopefully you can help.
After the upgrade to v4.1, my automatic script stopped working. I use the app Hazel to run the script on the contents of a folder when it detects something has been added. This worked perfectly in v4.0, but now it doesn't (I get an error code 127 when the shell script tries to run).

Here's the script I'm using for movies:

Code: Select all

/Applications/FileBot.app/Contents/MacOS/filebot -script fn:amc "/Volumes/Data HD/Downloads/Movies to Move" --output "/Volumes/Media 2/Movies" --conflict override -non-strict --def artwork=n forceMovie=y "movieFormat={n} ({y})" 
No file paths have been changed since it last worked (yesterday).

I don't think I set any custom naming formats so I don't think that's the problem, but I really don't know what the problem is so I could be wrong.

Did 4.1 fundamentally change something in the way the scripting works?

Re: v4.1 broke my automation

Posted: 02 Jun 2014, 02:29
by rednoah
The launch script is called filebot.sh now.

Re: v4.1 broke my automation

Posted: 02 Jun 2014, 07:32
by trendykendy
ok, so I replaced "filebot" with "filebot.sh" but now I get an error code 1 when the script tries to run. Am I doing something completely wrong?

Code: Select all

/Applications/FileBot.app/Contents/MacOS/filebot.sh -script fn:amc "/Volumes/Data HD/Downloads/Movies to Move" --output "/Volumes/Media 2/Movies" --conflict override -non-strict --def artwork=n forceMovie=y "movieFormat={n} ({y})" 

Re: v4.1 broke my automation

Posted: 02 Jun 2014, 12:56
by rednoah
Have you tried running from console?

PS: in infinite-repeat standalone usage you must set --def excludeList as per the documentation, or you will get banned

Re: v4.1 broke my automation

Posted: 05 Jun 2014, 17:19
by trendykendy
Ok, so after a lot of heartache, I got it working through the terminal. It turns out I had to install the java developer kit to get terminal to recognise the correct java version. The problem looks like its with how Hazel is trying the find the script, so no idea how to fix it, but thanks for your help!

Re: v4.1 broke my automation

Posted: 18 Jun 2014, 10:03
by serendipity
I basically have the same problem. I used this code just fine until now:

Code: Select all

filebot -rename "$1" --format "{n}/{n} - {sxe} - {t}" --db thetvdb -non-strict
now I get this error

Code: Select all

Shellscript exited with non-successful status code: 127
I tried using filebot.sh, but that didn't help.

I don't understand, why do I need to run this from console?
@trendykendy, if I understand correctly, you didn't solve the issue either?

How can we fix this? It was a perfect system ...

Re: v4.1 broke my automation

Posted: 18 Jun 2014, 17:04
by cf_junik
I'm sending the error I receive that also broke my automation

Code: Select all

2014-06-18 18:55:10.836 hazelworker[1339] DEBUG: No description for disk with path: /Volumes/dir/file - 4x22.avi
2014-06-18 18:55:11.085 hazelworker[1339] DEBUG: == script output ==
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/filebot/Main : Unsupported major.minor version 51.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
	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)

== End script output ==
2014-06-18 18:55:11.086 hazelworker[1339] [Error] Shell script failed: Error processing shell script on file /Volumes/dir/file - 4x22.avi.
2014-06-18 18:55:11.087 hazelworker[1339] Shellscript exited with non-successful status code: 1

Re: v4.1 broke my automation

Posted: 19 Jun 2014, 03:21
by rednoah