Page 1 of 1

Deluge integration

Posted: 09 Jul 2012, 13:53
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 ;)

Re: Deluge integration

Posted: 21 Oct 2012, 16:51
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?

Re: Deluge integration

Posted: 21 Oct 2012, 19:05
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?

Re: Deluge integration

Posted: 22 Oct 2012, 13:47
by verysofttoiletpaper
it's buggy, I got that fixed already, I will share when I can

Re: Deluge integration

Posted: 23 Oct 2012, 07:27
by Hire
Thx, I really appreciate it :)

Re: Deluge integration

Posted: 09 Nov 2012, 21:42
by Hire
Any update? :)

Re: Deluge integration

Posted: 20 Nov 2012, 10:38
by Hire
Nothing? :(

Re: Deluge integration

Posted: 06 Feb 2013, 09:37
by rednoah