Don't keep the gid
Hello , I want to try to setup the gid manually but after start download the gid is changed var client = new Aria2NetClient("http://192.168.100.4:6800/jsonrpc"); Dictionary<string, object> dictionary = new Dictionary<string, object>(); dictionary.Add("gid", quidUnique); dictionary.Add("on-download-error", "/root/unibox-message/messages " + movieImdbCode + "ERROR"); dictionary.Add("on-download-start", "/root/unibox-message/messages " + movieImdbCode + "START"); dictionary.Add("on-download-complete", "/root/unibox-message/messages " + movieImdbCode + "COMPLETE"); client.AddUri(new List<String> { selectedTorrents.ElementAt(0).url }, dictionary, null); Also all the events is not tracked .. Thanks
These are the options that should be supported: https://aria2.github.io/manual/en/html/aria2c.html#input-file
I don't see the on- events in that list, I'm not sure if that works through the API, I can have a peek at the Aria2 WebUI and see if they managed to do it.
The gid I'm not sure about either, I was under the assumption that when adding it would always generate 1 for you.
Hello ,
Thanks for quick response .
On the docs from aria2c
https://aria2.github.io/manual/en/html/aria2c.html#cmdoption-gid
"Normally, aria2 generates this GID for each download, but the user can specify GIDs manually using the --gid "
and on your aria2net i have option to add on the dictionary this option .(16chars)
For example if i put on the dictionary the dictionary.Add("gid", "1234567890111111");
is set on the download ... but after start downloading is changed :))
Thanks ...
works like a charm .... the web interface show another gid :)
Thanks for best ever package :)