Transmission script problems

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
zirum
Posts: 4
Joined: 14 Nov 2014, 10:04

Transmission script problems

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

Re: Transmission script problems

Post 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"
:idea: Please read the FAQ and How to Request Help.
zirum
Posts: 4
Joined: 14 Nov 2014, 10:04

Re: Transmission script problems

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