Aria2.NET icon indicating copy to clipboard operation
Aria2.NET copied to clipboard

Don't keep the gid

Open medeus661974 opened this issue 4 years ago • 3 comments

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

medeus661974 avatar Dec 06 '21 13:12 medeus661974

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.

rogerfar avatar Dec 06 '21 14:12 rogerfar

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

medeus661974 avatar Dec 06 '21 14:12 medeus661974

bandicam 2021-12-06 17-17-17-690 works like a charm .... the web interface show another gid :) Thanks for best ever package :)

medeus661974 avatar Dec 06 '21 15:12 medeus661974