Deluge Automation Help (Raspberry Pi 2)

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
bookedirl
Posts: 17
Joined: 09 Oct 2015, 14:31

Deluge Automation Help (Raspberry Pi 2)

Post by bookedirl »

Hello, first post and first time using FileBot on the raspberry pi. I currently use it in Windows and it's absolutely amazing.

I've installed all the prereqs and FileBot and just followed @rednoah s guide with the deluge script he posted http://www.filebot.net/forums/viewtopic ... 3382#p3382

Few questions here:
First: he says to make a script deluge-postprocess but then after that he says to call deluge-execute.png... I'm assuming this was just a mistake? or am I missing something?

Second: --output "$HOME/Media"
This is where the file will be moved/copied to correct? So for instance if I wanted this moved to my mounted usb drive I would put
--output "/mnt/usb1/Processed" (eventually to my nas, but for testing this is fine)

Third:
I tried to run it as /home/pi/scripts/delugepostprocess.sh added to the execute torrent complete in deluge. I waited a bit after the torrent finished and nothing happened. How can I test this out of this script? As I believe the strings here are filled in by deluge.

I still need to do a bit more searching here as to what each flag means. This is what I want this script to do:
Rename the movie, Move it to my media folder on my NAS. I don't need art work or anything like that as I use Plex.

Thank you, any help would be appreciated.
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Deluge Automation Help (Raspberry Pi 2)

Post by rednoah »

1.
Fixed. Just a editing problem.

2.
Yes.

3.
I'd start by making sure that your script is in fact called by redirecting all output.

@see viewtopic.php?f=4&t=3005&p=16864#p16864

EDIT:

@see viewtopic.php?f=3&t=3067
:idea: Please read the FAQ and How to Request Help.
bookedirl
Posts: 17
Joined: 09 Oct 2015, 14:31

Re: Deluge Automation Help (Raspberry Pi 2)

Post by bookedirl »

Thanks for the quick reply.

I tried the logging feature by appending " > /home/pi/scripts/out.log 2> /home/pi/scripts/err.log" to the end of the file bot script but nothing happened after the torrent completed.

I did a test and specified the torrent path and name from one already completed and the script worked perfectly.

Is it possible deluge can't run the script? Do I need to give the deluge-postprocess file user permission as deluge user? How would I call that?

I know that the execute is working because I'm using ssmtp for email notifications once it completes and that is also a .sh script. But I don't recall giving it any special permissions other than +xr
bookedirl
Posts: 17
Joined: 09 Oct 2015, 14:31

Re: Deluge Automation Help (Raspberry Pi 2)

Post by bookedirl »

I checked amc.log and saw this after the download completes

Failed to initialize cache: java.nio.file.AccessDeniedException: /usr/share/filebot/data/cache/0/.lock

I googled and saw another post where you said to delete the cache folder, however this didn't help.
bookedirl
Posts: 17
Joined: 09 Oct 2015, 14:31

Re: Deluge Automation Help (Raspberry Pi 2)

Post by bookedirl »

Alright, I fixed the problem... I turns out it was because I did install Filebot in ROOT

I corrected this by passing

Code: Select all

sudo chown -R $USER:$USER filebot
in the folder /usr/share/

File was successfully moved to my NAS and file renamed.

My wife isn't impressed by this but I think this is amazing. :)
Post Reply