[JSON API] core.add_torrent_magnet - include download path

Suggestions and discussion of future versions
Post Reply
afly

[JSON API] core.add_torrent_magnet - include download path

Post by afly »

Apologies if I have misunderstood how this works, I'm given to understand that when adding a regular torrent file via json-rpc and processing it via web.add_torrents, a parameter you can send is the actual final save location for the content.

I'm strictly working with magnets so found myself playing with core.add_torrent_magnet. The below works a treat

'{"method": "core.add_torrent_magnet", "params": ["'.$uri.'", {}], "id": 1}');

The torrent is added and all is well but I was wondering if there is also a way to specify the download location with this method ( the {} parameter looks eerily like it may take some data but I could find any documentation :? )

I have tried a combo of "options": {"download_location": "'.$downloadDir.'"} etc but all result in the POST getting rejected.

Cheers if anyone can help
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: core.add_torrent_magnet - include download path

Post by Cas »

This has been answered before if you search the forum

http://forum.deluge-torrent.org/viewtop ... t=json+api
Post Reply