[JSON API] core.add_torrent_magnet - include download path
Posted: Fri Sep 20, 2013 12:52 pm
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
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