Page 1 of 1

Transmission script problems

Posted: 16 Nov 2014, 07:24
by zirum
Having a problem with running AMC after a torrent finishes. Get the following output:

Code: Select all

Argument: /ut_dir=/mnt/netshares/Regular/Downloads/Finished/The.Big.Bang.Theory.S08E06.HDTV.x264-LOL.mp4
Argument: /ut_kind=multi
Argument: /ut_title=The.Big.Bang.Theory.S08E06.HDTV.x264-LOL.mp4
File not found: /ut_dir=/mnt/netshares/Regular/Downloads/Finished/The.Big.Bang.Theory.S08E06.HDTV.x264-LOL.mp4
Failure (°_°)
Only problem I can see, is that I guess the ut_dir property tries to locate directory, but receives the full path instead. Is there a way to change the settings to get right?

transmission setting:

Code: Select all

    "script-torrent-done-enabled": true,
    "script-torrent-done-filename": "/home/pi/filebot-transmission-job.sh",
filebot-transmission-job.sh

Code: Select all

sudo /usr/share/filebot/bin/filebot.sh -script fn:amc --output "/mnt/netshares" --log-file "/mnt/netshares/Regular/Downloads/amc-transmission.log" --action move --conflict override -non-strict "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME" --def music=n artwork=y subtitles=en,no,sv,da plex=192.168.0.7 clean=y

Re: Transmission script problems

Posted: 16 Nov 2014, 08:45
by rednoah
1.
Copy & Paste the pristine call without modifications => works

2.
Try your call with modifications => doesn't work

3.
Finding the problem is straight-forward from here.
FileBot wrote:--def [name=value] : Define script variables
You wrote:-non-strict --def "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME"

Re: Transmission script problems

Posted: 16 Nov 2014, 14:54
by zirum
Should have been easy, yes. But sometimes you just get blind of your own typos.

Thanks a lot for the correction, all scripts work like a charm now :)