I want to strip album art from incoming mps's, I have found a python application that I can run like "eyed3 filename.mp3 --remove-tags" that does what I want, but when setting up a rule to search for .mp3's and run 'embedded shell script' I always get failures.
Here is my actual shell script:
- Code: Select all
/usr/local/bin/eyed3 "$1" --remove-frame APIC
I have turned on debug logging and they arent very helpful either:
2015-10-25 22:47:34.553 hazelworker[12170] Example Artist - Example Title.mp3: Rule Strip Tags matched.
2015-10-25 22:47:34.553 hazelworker[12170] DEBUG: Got error last time. Re-trying actions.
2015-10-25 22:47:34.858 hazelworker[12170] DEBUG: == script output ==
== End script output ==
2015-10-25 22:47:34.859 hazelworker[12170] [Error] Shell script failed: Error processing shell script on file /Volumes/Data HD/Music/Staging/artist/2015-10-01/Example Artist - Example Title.mp3.
2015-10-25 22:47:34.859 hazelworker[12170] Shellscript exited with non-successful status code: 1
2015-10-25 22:47:34.859 hazelworker[12170] DEBUG: Tapping error retry sequence
I have tested the script in the CLI and it does work, but I'm not sure why it doesnt work through the embedded shell in Hazel.
Any help would be appreciated it!