Page 1 of 1

Python Script Help

Posted: Mon Jun 18, 2012 2:34 am
by SSMI
I'm trying to write a python script to read an rss feed and start certain downloads. All the downloads are a single file. I want them to download to a different location with a particular name. I also want to remove any that had seeded to a certain ratio.

My problem is I'm having a really hard time making my way around the python api. I did finally get all the dependencies installed. That took about two hours to find anything related to it and that wasn't in a logical location either. No where in there does it list the info keys. There is no real example anywhere either. It's awful coming here trying to make something without any deluge experience.

In particular my question has to do with starting torrents. I would like to use the link to the torrent (add_torrent_url) but can't see how to set the output filename. I see there is an options argument but I can't find what options are possible anywhere. Any help?

I think I can find out anything else I might want to use but the documentation is awful.

Thanks for any help.

Re: Python Script Help

Posted: Mon Jun 18, 2012 1:08 pm
by Cas
The documentation may be lacking however you can always check the Deluge source code or other plugins/scripts. The best way would be to grep for "add_torrent_url" to find examples of usage.