Python Script Help

Suggestions and discussion of future versions
Post Reply
SSMI
New User
New User
Posts: 3
Joined: Mon Jun 18, 2012 12:12 am

Python Script Help

Post 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.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Python Script Help

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