AMC Issue

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
celtica
Posts: 2
Joined: 27 Jun 2014, 19:38

AMC Issue

Post by celtica »

Have been running filebot with AMC for a while now (After rednoah helped me get it working right!). I am now having a new problem. Recently got a new machine and was working on setting that new machine up to take over the filebot/amc script.

I setup Ubuntu 14.04, setup Filebot 4.5.6 (r2818) and Java 1.8.0_45. Setup deluge daemon. I copied the AMC and deluge-postprocess scripts from the PC where it is working now to this new PC, setup the exact same folders in the same places.

My problem is that when I run it, I get the following errors in amc.log:

Parameter: gmail = *****
Parameter: artwork = y
Parameter: ut_dir = /
Parameter: ut_kind = multi
Parameter: ut_title =
Parameter: minFileSize = 0
Parameter: clean = y
Invalid arguments: pass in either file arguments or ut_dir/ut_file parameters but not both
Failure (°_°)

I know I am missing something here, but not sure what??

Any help would be appreciated.

filebot -version:
FileBot 4.5.6 (r2818) / Java(TM) SE Runtime Environment 1.8.0_45

java -version:
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

deluge-postprocess:
#!/bin/bash
TORRENT_ID=$1
TORRENT_NAME=$2
TORRENT_PATH=$3

filebot -script fn:amc --output "/mnt/MediaServer" --log-file amc.log --action duplicate --conflict override -non-strict --def music=y artwork=y "ut_dir=$TORRENT_PATH/$TORRENT_NAME" "ut_kind=multi" "ut_title=$TORRENT_NAME"
User avatar
rednoah
The Source
Posts: 23943
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC Issue

Post by rednoah »

What you want to pass:

Code: Select all

"ut_dir=$TORRENT_PATH/$TORRENT_NAME" 
What you do pass:

Code: Select all

ut_dir = /
As we can see all the $ENVIRONMENT variables are empty. Why?
You CANNOT just copy & paste the template for µTorrent with all the %D, %F, etc variables into cmd. The variables have to be replaced with actual values first.
If you want to run it manually you need to pass 3 arguments:

Code: Select all

TORRENT_ID=$1
TORRENT_NAME=$2
TORRENT_PATH=$3
:idea: Please read the FAQ and How to Request Help.
Post Reply