#149 some xmlrpc interface improvements


Hi, I would like to suggest following xmlrpc i-face improvements:

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

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


  • tujikawa

    tujikawa - 2009-07-25

    Grouping downloads would be good addition for front end.

    For multiple call of xml-rpc methods, aria2 xml-rpc server persists connection and the overhead of sending multiple xml-rpc methods are minimal I think.

  • tujikawa

    tujikawa - 2009-12-26

    system.multicall XML-RPC method was implemented.

  • tujikawa

    tujikawa - 2010-01-17

    Added files key to the response of aria2.tellStatus. aria2.tellActive is also affected with this change.


Log in to post a comment.