Hi, I would like to suggest following xmlrpc i-face improvements:
Could you please add a key, which value would be a path to the file including filename (or to root directory in case of multifile torrent), in tellStatus (and tellActive) response. Now I can get all active DLs and their progress by only one tellActive call, but then I should make getFiles calls for each gid individually just to know what DL is represented by this gid.
Add an optional parameter, say 'groupID', to each DL, which can be set in add(Uri, Torrent, Metalink) call and changed by changeOption call and would be used as optional parameter to tellActive and tellWaiting methods. If this parameter passed, tellActive(Waiting) call returns only DLs with 'groupID' equal to passed value. This would allow a simple implementation of user-customisable groups of DLs. Also it would be useful if 'groupID' would be an array. This would allow sorting of DLs list by multiple parameters wihout using database in GUI and performing multiple calls to aria2.
3.It would be useful if changeOption method (and other methods like addUri, remove, tellStatus...) would accept an array of (gid,options), i.e
array(0=>array('gid'=>gid1, 'options'=>oprions1), 1=>array('gid'=>gid2, 'options'=>options2)).
Often there is a necessity to call the same method multiple times. For example, adding a group of URLs, changing max-download-limit for group of DLs, etc...Or could you please implement a multicall method, like it was done in rTorrent.
And thanks a lot for your work. I've never seen nothing like aria2 before.
Log in to post a comment.