Strange script error

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
aykot
Posts: 5
Joined: 09 Sep 2013, 22:13

Strange script error

Post by aykot »

Hello to everyone.

I have a really strange problem. I was using an older version of filebot with a script launched from transmission. It worked like a charm. Then I bought the App Store version, and realized that it did´t work with te script. Then I installed filebot through brew and modified my script.
The weird part is that if I execute the script, it works, but Transmission is set to execute it after a download completion and it doesn't do anything. Am I missing something on the config? Can I check somewhere for a log? (I think there is none regarding this problem, because I believe it doesn't start at all)

Thank you in advice.
User avatar
rednoah
The Source
Posts: 23947
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strange script error

Post by rednoah »

If you've specified a log file in the filebot call but nothing get written it's save to say filebot is not called.

If you want to debug your transmission-postprocess shell script you'll have to add some logging and output redirection in there to see what's going on. Most likely filebot/java is not in the PATH (for the transmission-daemon user) and it's simply erroring out with a "filebot: command not found".
:idea: Please read the FAQ and How to Request Help.
aykot
Posts: 5
Joined: 09 Sep 2013, 22:13

Re: Strange script error

Post by aykot »

I think that filebot is not called from transmission too, but this happens just before installing filebot from brew cask.
Here I paste my script, to see if there is anything wrong.

#!/bin/bash
filebot -script fn:amc "/Users/MYUSER/Downloads/Transmission" --output "/Volumes/My Book 3 TB" --action move --conflict override -non-strict --def artwork=n --def pushover=EDITED --def subtitles=en --def --lang en --def "seriesFormat=Series/{n}/{'Season '+s}/{n} {s}x{e.pad(2)} - {t}" "movieFormat=Películas/{n} {y}" "animeFormat=Anime/{n}/{n} 1x{e.pad(3)} - {t}"

Thankyou
User avatar
rednoah
The Source
Posts: 23947
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Strange script error

Post by rednoah »

I guess if you want to see the console output of that call you'll have to redirect the console output to some file so you can see what's not working. ;)

@see viewtopic.php?f=3&t=1802#p12015
:idea: Please read the FAQ and How to Request Help.
aykot
Posts: 5
Joined: 09 Sep 2013, 22:13

Re: Strange script error

Post by aykot »

Finally I´ve made it work!

It is a problem on the way I called filebot.

replacing "filebot" with "/opt/homebrew-cask/Caskroom/filebot/4.5.6/FileBot.app/Contents/MacOS/filebot.sh" into the script, and its back on line.

#!/bin/bash
/opt/homebrew-cask/Caskroom/filebot/4.5.6/FileBot.app/Contents/MacOS/filebot.sh -script fn:amc "/Users/MYUSER/Downloads/Transmission" --output "/Volumes/My Book 3 TB" --action move --conflict override -non-strict --def artwork=n --def pushover=EDITED --def subtitles=en --def --lang en --def "seriesFormat=Series/{n}/{'Season '+s}/{n} {s}x{e.pad(2)} - {t}" "movieFormat=Películas/{n} {y}" "animeFormat=Anime/{n}/{n} 1x{e.pad(3)} - {t}"

Thanks anyway
Post Reply