Deluge console/python script

General support for problems installing or using Deluge
Post Reply
lightspeed

Deluge console/python script

Post by lightspeed »

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.
Post Reply