Deluge console/python script
Posted: Sun Apr 12, 2015 2:40 pm
I have a small python script that scrapes an RSS feed every hour (crontab) and adds a bunch of torrents to Deluge via "deluge-console add"
Everything is working fine, untill at some point, deluge simply crashes. Restarting deluged works fine (set up another crontab to do that every day...) but I believe I found the problem I'm running into.
Every time the script runs, some of the commands (deluge-console add) hang around until I kill them manually.
Any one have any ideas on what I can do in order to not have to deal with this manually?
The python script uses subprocess.Popen("deluge-console add desired/download/destination link_to_torrent") to add torrents (close enough for pseudocode) and then just exits after adding all of the torrents I want.
Everything is working fine, untill at some point, deluge simply crashes. Restarting deluged works fine (set up another crontab to do that every day...) but I believe I found the problem I'm running into.
Every time the script runs, some of the commands (deluge-console add) hang around until I kill them manually.
Any one have any ideas on what I can do in order to not have to deal with this manually?
The python script uses subprocess.Popen("deluge-console add desired/download/destination link_to_torrent") to add torrents (close enough for pseudocode) and then just exits after adding all of the torrents I want.