Page 1 of 1

Post-process AMC script - Transmission on Mac OS X

Posted: 30 Oct 2014, 10:01
by Arny
Hi there,

I'm trying to get Filebot working as per this tutorial:

http://www.filebot.net/forums/viewtopic.php?f=4&t=520

I've verified that Filebot is installed and able to run;

Code: Select all

filebot -version
returns the following:

Code: Select all

FileBot 4.5 (r2612) / Java(TM) SE Runtime Environment 1.8.0_25
I've also confirmed that Transmission is trying to call the script by checking Transmission's Message Log where it's showing messages like:

Code: Select all

2014-10-30 03:27:26 +0000 torrent.c:2119 [Info] [ www.Speed.cd ] -Modern.Family.S06E06.720p.HDTV.x264-KILLERS: Calling script "/Users/XXXX/Desktop/transmission-postprocess"
Finally I've also confirmed that I can run the following script manually, although obviously it returns an error because the variables haven't been populated:

Code: Select all

#!/bin/bash /usr/local/bin/filebot -script fn:amc --output "/Volumes/Arnrobo" --log-file amc.log --action move --conflict override -non-strict --def artwork=n --def music=n --def subtitles=n --def pushover=[removed] --def "seriesFormat=/Volumes/Arnrobo/TV\ Shows/{n}/Season {s}/{n.space('.')}.{s00e00}" "animeFormat=/Volumes/Arnrobo/Anime\ TV\ Shows/{n}/Season {s}/{n.space('.')}.{s00e00}" "movieFormat=/Volumes/Arnrobo/Movies/{n} ({y})" "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
date >> output.txt
whoami >> output.txt
echo $TR_TORRENT_DIR >> output.txt
echo $TR_TORRENT_NAME >> output.txt
echo $TR_TORRENT_NAME >> output.txt
Obviously the last few lines are an effort to output some debugging info.

My problem is that there is no indication that the script is actually being run aside from the Transmission Message Log. Nothing is being added to "amc.log" (this currently exists and is populated when the script is run manually), "output.txt" is not being created, and obviously there's no change in the newly downloaded files. I'm certain that I've set the permissions exactly as per the tutorial, so I'm basically at a loss.

Does anyone have any ideas? Thanks in advance.

Re: Post-process AMC script - Transmission on Mac OS X

Posted: 30 Oct 2014, 12:27
by rednoah
Try a more simple script for testing. Assuming output.txt is written, where would it be? If you don't know the WORKING_DIR don't use relative paths. ;)

I'd also make sure that said script is executable and readable by the transmission user.

Re: Post-process AMC script - Transmission on Mac OS X

Posted: 31 Oct 2014, 07:50
by Arny
I've switched to the basic script that's used in the tutorial linked above, but still no joy.

As near as I can tell using the Mac's Activity Monitor and ls -la (it's been a while since I exercised some command line-fu), Transmission is running using the same user that has permission to run the script (i.e. my user account). The script is also executable.

In my latest test I was reminded that I do have Transmission set to move my completed downloads to another location, but according to the Transmission logs this happens before the script is called; could this potentially make a difference?

Otherwise I'm seeing the same problem. Any other suggestions?

Re: Post-process AMC script - Transmission on Mac OS X

Posted: 31 Oct 2014, 08:54
by rednoah
Even if filebot fails to find any files, there should still be some logs. filebot aside, if you can't even make the echo statements write text to file first, you can probably assume that your script is never called. Figure that out will be tricky though. You could check the Transmission forums as well.

Re: Post-process AMC script - Transmission on Mac OS X

Posted: 31 Oct 2014, 10:14
by Arny
Thanks, the Transmission forums go as far as pointing towards the Message Log I mention above, so it must be my fault :P

I'll do some more in-depth research on OS X, its permissions and anything else that seems relevant and report back if I make any progress.

Re: Post-process AMC script - Transmission on Mac OS X

Posted: 24 Jan 2015, 19:20
by phifer2088
Arny wrote:Thanks, the Transmission forums go as far as pointing towards the Message Log I mention above, so it must be my fault :P

I'll do some more in-depth research on OS X, its permissions and anything else that seems relevant and report back if I make any progress.
Arny,

Did you ever find a solution? I have the same problem on my QNAP NAS. I have been working on the QNAP forum and the Transmission forum trying to get a solution. Thanks