(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)
Autostart Deluge if not finished downloading
-
- New User
- Posts: 9
- Joined: Thu Jul 01, 2010 5:08 pm
Autostart Deluge if not finished downloading
Last edited by mr_kazoodle on Fri Jan 07, 2011 2:56 pm, edited 1 time in total.
-
- New User
- Posts: 9
- Joined: Thu Jul 01, 2010 5:08 pm
Execute plugin is unreliable!
(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)
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.
-
- New User
- Posts: 9
- Joined: Thu Jul 01, 2010 5:08 pm
Re: Autostart Deluge if not finished downloading
EDIT
Old workaround, I won't remove the attachment in case someone would find it interesting.
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.
-
- New User
- Posts: 9
- Joined: Thu Jul 01, 2010 5:08 pm
Re: Autostart Deluge if not finished downloading
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:
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)
(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)
- Checks if there are incomplete downloads and if so starts deluge.
I included a README.txt file


- 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