Problems with Deluge automation

Support for Ubuntu and other Desktop Linux distributions
Post Reply
jannis
Posts: 5
Joined: 05 Mar 2015, 10:50

Problems with Deluge automation

Post by jannis »

Hi there,

I am trying to use the script for Deluge and for some reason it will not initiate when a download is completed.

My code is

Code: Select all

#!/bin/bash
TORRENT_ID=$1
TORRENT_NAME=$2
TORRENT_PATH=$3

filebot -script fn:amc --output "/mnt/SAMSUNG/Downloads" --log-file amc.log --action hardlink --conflict override -non-strict --def music=y artwork=y "ut_dir=$TORRENT_PATH/$TORRENT_NAME" "ut_kind=multi" "ut_title=$TORRENT_NAME"
My filebot sys info is Image

Permissions on the .sh file are Image

When I execute the script in terminal I get
Run script [fn:amc] at [Wed Aug 26 22:49:34 BST 2015]
Parameter: music = y
Parameter: artwork = y
Parameter: ut_dir = /mnt/SAMSUNG/Incomplete/The.Brink.S01E10.720p.HDTV.x264-KILLERS.mkv
Parameter: ut_kind = multi
Parameter: ut_title =
Input: /mnt/SAMSUNG/Incomplete/The.Brink.S01E10.720p.HDTV.x264-KILLERS.mkv
Group: [tvs:the brink] => [The.Brink.S01E10.720p.HDTV.x264-KILLERS.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [The Brink]
Fetching episode data for [The Brink]
Fetching episode data for [The Brink of Law]
[HARDLINK] Rename [/mnt/SAMSUNG/Incomplete/The.Brink.S01E10.720p.HDTV.x264-KILLERS.mkv] to [/mnt/SAMSUNG/Downloads/TV Shows/The Brink/Season 01/The Brink - S01E10 - There Will Be Consequences.mkv]
Processed 1 files
Fetching series artwork for [The Brink] to [/mnt/SAMSUNG/Downloads/TV Shows/The Brink/Season 01]
Fetching /mnt/SAMSUNG/Downloads/TV Shows/The Brink/poster.jpg => {id=1075142, BannerMirror=http://thetvdb.com/banners/, BannerPath=posters/278469-3.jpg, BannerType=poster, BannerType2=680x1000, Language=en, Rating=10.0000, RatingCount=6}
Fetching /mnt/SAMSUNG/Downloads/TV Shows/The Brink/banner.jpg => {id=1080298, BannerMirror=http://thetvdb.com/banners/, BannerPath=graphical/278469-g3.jpg, BannerType=series, BannerType2=graphical, Language=en, Rating=9.0000, RatingCount=1}
Fetching /mnt/SAMSUNG/Downloads/TV Shows/The Brink/fanart.jpg => {id=1074778, BannerMirror=http://thetvdb.com/banners/, BannerPath=fanart/original/278469-3.jpg, BannerType=fanart, BannerType2=1920x1080, Language=en, Rating=2.8000, RatingCount=5, SeriesName=false, ThumbnailPath=_cache/fanart/original/278469-3.jpg, VignettePath=fanart/vignette/278469-3.jpg}
Fetching /mnt/SAMSUNG/Downloads/TV Shows/The Brink/Season 01/poster.jpg => {id=1080266, BannerMirror=http://thetvdb.com/banners/, BannerPath=seasons/278469-1.jpg, BannerType=season, BannerType2=season, Season=1, Language=en, Rating=9.5000, RatingCount=2}
Banner not found: /mnt/SAMSUNG/Downloads/TV Shows/The Brink/Season 01/banner.jpg / season:seasonwide
Fanart not found: /mnt/SAMSUNG/Downloads/TV Shows/The Brink/clearart.png / clearart
Fanart not found: /mnt/SAMSUNG/Downloads/TV Shows/The Brink/logo.png / clearlogo
Fanart not found: /mnt/SAMSUNG/Downloads/TV Shows/The Brink/landscape.jpg / tvthumb
Fanart not found: /mnt/SAMSUNG/Downloads/TV Shows/The Brink/Season 01/landscape.jpg / seasonthumb
Done ヾ(@⌒ー⌒@)ノ
The script seems to do exactly what I want it to, it just won't start when deluge has completed a download.

The path to the file is /home/user/deluge-postprocess.sh and this is in execute in deluge preferences. I also read on the forums about problems with remote desktop. I use team viewer a lot ubuntu. Could this be a problem?

Any ideas?

Thanks
User avatar
rednoah
The Source
Posts: 24010
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Problems with Deluge automation

Post by rednoah »

The standard debugging steps apply.

* make sure your script is called
* redirect error output

@see viewtopic.php?f=4&t=3005&p=16864#p16864
:idea: Please read the FAQ and How to Request Help.
Post Reply