Deluge integration

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Deluge integration

Post by verysofttoiletpaper »

Here is a python wrapper around the utorrent script whose notes you can read: http://filebot.sourceforge.net/forums/v ... =215#p1561,
It will allow you to run filebot every time a download completes.

You just have to add it to Deluge's execute plugin on download complete. Don't forget to give the script executable permissions.

There are some options you can costumize inside the script

Download scripts:
delugeScripts.zip
Notes:
* You can specify labels which should not be treated by filebot, like automatic labels for music trackers for example.
* There are some growl notifications which will only work if you activate them in the script options.

Let me know if something doesn't work, and enjoy ;)
Last edited by verysofttoiletpaper on 20 Aug 2012, 16:57, edited 1 time in total.
Hire
Posts: 7
Joined: 21 Oct 2012, 16:29

Re: Deluge integration

Post by Hire »

I'm using this script and it works but not always :\

First I can't get the report for email working. I tried mailto and gmail but nothing happens.

Then when I downloaded a torrent deluge execute completed for 2-3 times and then stopped to works. I tried to debug it but the log doesn't give me an information about completed. How can I debug it properly?
Hire
Posts: 7
Joined: 21 Oct 2012, 16:29

Re: Deluge integration

Post by Hire »

Ok, I have an update. I got this:

[WARNING ] 19:55:25 core:116 [execute] command '/home/salone/Scaricati/delugeScripts/completed' failed with exit code 1
[WARNING ] 19:55:25 core:120 [execute] stderr: File "/home/salone/Scaricati/delugeScripts/completed", line 125

And here something weird happens.. I got this append on completed ( yes, the file ) at the line 125:

2012-10-21 18:44:50,074 Download complete: 703a34337390f65b0fa267fc447ed24cd1970c6b at /home/salone/Scaricati/Torrent/One Hour Photo (Ita-Eng).avi
2012-10-21 18:44:50,074 Starting filebot
2012-10-21 18:45:38,405 Filebot finished with success

Why??

EDIT: Another update. I tried to chmod completed with 555 so it's only exectuable and readable but then I get this:

[WARNING ] 23:20:17 core:116 [execute] command '/home/salone/Scaricati/delugeScripts/completed' failed with exit code 1
[WARNING ] 23:20:17 core:120 [execute] stderr: Traceback (most recent call last):
File "/home/salone/Scaricati/delugeScripts/completed", line 33, in <module>
logging.basicConfig(level=logging.INFO, format='%(asctime)s %(message)s', filename=path.abspath(sys.argv[0]).replace('.py', '.log'))
File "/usr/lib/python2.7/logging/__init__.py", line 1528, in basicConfig
hdlr = FileHandler(filename, mode)
File "/usr/lib/python2.7/logging/__init__.py", line 901, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python2.7/logging/__init__.py", line 924, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/salone/Scaricati/delugeScripts/completed'

So why the script is trying to write itself?
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: Deluge integration

Post by verysofttoiletpaper »

it's buggy, I got that fixed already, I will share when I can
Hire
Posts: 7
Joined: 21 Oct 2012, 16:29

Re: Deluge integration

Post by Hire »

Thx, I really appreciate it :)
Hire
Posts: 7
Joined: 21 Oct 2012, 16:29

Re: Deluge integration

Post by Hire »

Any update? :)
Hire
Posts: 7
Joined: 21 Oct 2012, 16:29

Re: Deluge integration

Post by Hire »

Nothing? :(
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Deluge integration

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
Post Reply