Amc Ubuntu Deluge

Any questions? Need some help?
Post Reply
earthcoder
Posts: 9
Joined: 09 Mar 2014, 12:35

Amc Ubuntu Deluge

Post by earthcoder »

Hello

I just set up a new server running Ubuntu

i set up deluge and installed filebot

i wrote the following script delugescript

Code: Select all

#!/bin/bash
TORRENT_ID=$1
TORRENT_NAME=$2
TORRENT_PATH=$3
filebot -script fn:amc --output "Home/earthcoder/SortedMedia" --log-file amc.log --action Move --conflict override -non-strict --def clean=y --def artwork=y "ut_dir=$TORRENT_PATH/$TORRENT_NAME" "ut_kind=multi" "ut_title=$TORRENT_NAME"
did chmod +rx
ran it in terminal to check i know it would error just to no paths but it ran ok.

then added it to deluge
execute as the following
/Home/earthcoder/delugescript

but does not do anything, i checked amc.log and seems it does not run.

im doing by web so unable to see any errors and cant find any deluge logs

any ideas i can try
User avatar
ashfallen0
Power User
Posts: 32
Joined: 14 Jan 2012, 10:44

Re: Amc Ubuntu Deluge

Post by ashfallen0 »

I wrote up an AMC/Deluge guide here: http://www.filebot.net/forums/viewtopic.php?f=4&t=700 XBMCbuntu is just an Ubuntu variant, so all the steps should still work properly.

From what I can see:
--output "Home/earthcoder/SortedMedia"
needs to be altered slightly for the correct operation:
--output "/home/earthcoder/SortedMedia/"

Code: Select all

--output "/home/earthcoder/SortedMedia/" 
I'm fairly confident that if you run by inserting the variables at the command line: **example only**

Code: Select all

$>sh /home/earthcoder/delugescript 5c60b30ae37d821b847cdd993844f9da59d8360 Saturday.Night.Live.S39E20.Charlize.Theron-The.Black.Keys.HDTV.x264-2HD[rarbg] /home/earthcoder >> /home/earthcoder/runtest.txt
**example only**
that you would see the script fire properly.

CLI is finicky about cAsE and proper path without dropping to error when invoked. Let me know if that helps!
Image PHPBB3 hates me.
Post Reply