Autostart Deluge if not finished downloading

General support for problems installing or using Deluge
Post Reply
mr_kazoodle
New User
New User
Posts: 9
Joined: Thu Jul 01, 2010 5:08 pm

Autostart Deluge if not finished downloading

Post by mr_kazoodle »

(old text has been removed)

EDIT:
I made 2 scripts which make sure that Deluge is started automatically if there are incomplete downloads.
Because I don't want Deluge to be running when I don't need it and I always forget to start Deluge after starting my computer if I'm downloading a file. You can find them in my lastest post.

The ideal situation would be to create a plug-in for this OR being able to rely on the Execute plug-in (which is NOT the case)
Last edited by mr_kazoodle on Fri Jan 07, 2011 2:56 pm, edited 1 time in total.
mr_kazoodle
New User
New User
Posts: 9
Joined: Thu Jul 01, 2010 5:08 pm

Execute plugin is unreliable!

Post by mr_kazoodle »

(text removed when edited)

The Execute plug-in executes the script when I start Deluge instead of executing it only when adding a torrent. It increases the number of incomplete torrents by every torrent listed in Deluge and messes up my record. This forced me to find a workaround.

(text + attachment removed when edited)
Last edited by mr_kazoodle on Fri Jan 07, 2011 3:00 pm, edited 2 times in total.
mr_kazoodle
New User
New User
Posts: 9
Joined: Thu Jul 01, 2010 5:08 pm

Re: Autostart Deluge if not finished downloading

Post by mr_kazoodle »

EDIT
Old workaround, I won't remove the attachment in case someone would find it interesting.
Attachments
all_scripts.zip
5 scripts to make deluge start at startup if there are incomplete downloads, 2 of which need to be edited.
Recommendation: use the newer scripts in the post underneath.
(1.53 KiB) Downloaded 231 times
Last edited by mr_kazoodle on Fri Jan 07, 2011 3:08 pm, edited 1 time in total.
mr_kazoodle
New User
New User
Posts: 9
Joined: Thu Jul 01, 2010 5:08 pm

Re: Autostart Deluge if not finished downloading

Post by mr_kazoodle »

NEW scripts: I cut the number of scripts needed down to 2
(I wanted the startup script to be as short as possible, so I still use 2 scripts)

Deluge_script.py:
  • No parameters: increase the number of incomplete torrents by 1
  • "-d" or "--decrease": decrease the number of incomplete torrents by 1
  • "-s" or "--start": starts deluge and corrects for the Execute bug (=executing scripts after starting deluge)
Startupscript.py:
  • Checks if there are incomplete downloads and if so starts deluge.
Notes:
I included a README.txt file
:!: One could achieve an even better result with simpler scripts IF the Execute plugin was to be improved.
:!: There is however an issue which remains unsolved: if you remove a torrent which hasn't completed you need to correct .Deluge_data.txt manually or run the script with the decrease parameter. (also: if an incomplete download has been paused = minor issue)
Attachments
Deluge_scripts_v2.1.zip
Edit (11 January 2011): a small improvement, so therefore 2.1 instead of 2.0
(1.56 KiB) Downloaded 223 times
Post Reply