v4.1 broke my automation

Any questions? Need some help?
Post Reply
trendykendy
Posts: 5
Joined: 01 Jun 2014, 19:54

v4.1 broke my automation

Post 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?
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: v4.1 broke my automation

Post by rednoah »

The launch script is called filebot.sh now.
:idea: Please read the FAQ and How to Request Help.
trendykendy
Posts: 5
Joined: 01 Jun 2014, 19:54

Re: v4.1 broke my automation

Post 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})" 
User avatar
rednoah
The Source
Posts: 23934
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: v4.1 broke my automation

Post 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
:idea: Please read the FAQ and How to Request Help.
trendykendy
Posts: 5
Joined: 01 Jun 2014, 19:54

Re: v4.1 broke my automation

Post 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!
serendipity
Posts: 1
Joined: 18 Jun 2014, 09:58

Re: v4.1 broke my automation

Post 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 ...
cf_junik
Posts: 2
Joined: 18 Jun 2014, 17:00

Re: v4.1 broke my automation

Post 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
Post Reply