Problem with ClientUI script

Suggestions and discussion of future versions
Post Reply
gazpachoking
Moderator
Moderator
Posts: 315
Joined: Sat Aug 18, 2007 2:28 pm
Location: Pittsburgh, USA

Problem with ClientUI script

Post by gazpachoking »

I am using the sclient to make a deluge plugin for FlexGet, and I was trying to have it set the move on completed path. I seem to be running into trouble though.
When I call:
sclient.set_torrent_move_on_completed(torrentid, True)
I get an error:
Fault: <Fault 1: "<type 'exceptions.AttributeError'>:Torrent instance has no attribute 'set_move_on_completed_path'">
I was looking through the source, and it seems that the sclient is trying to call set_move_on_completed_path for the torrent, but there didn't seem to be any mention of such a method in torrent.py. Is this broken right now? Is there any way to do it? Shouldn't it be under set_torrent_options instead of having its own method?
EDIT: Got this answer on IRC, fixed in svn.

I might as well ask at the same time, is there a way to set the label from sclient?
EDIT: Yes there is. Got it working. I'm just looking for the answer to this last question now. Anybody got any good ideas?

Another thing, is there a good way to get the torrent id of a torrent I just added? Right now I am calling get_session_state before and after I add my torrent and finding the new one. Slight problem with that though, the add_torrent call doesn't seem to block the script from running, so unless I put a delay before my second get_session_state it will retrieve the ids before the new one is added.

I am using deluge 1.1.7 on vyatta vc5
Post Reply