Represents a request to change the position of a download.
ChangePosition(string gid, int pos, string how, string? id = null)Changes the position of the download denoted by gid in the queue.pos is an integer, and how specifies the mode: ‘POS_SET’, ‘POS_CUR’, or ‘POS_END’. Returns the new position as an integer.
https://aria2.github.io/manual/en/html/aria2c.html#aria2.changePosition
gid (string): The GID of the download.
pos (int): The position value.
how (string): The mode of repositioning.
id (string (optional, default: null)): The tracking id for the request. If this is omitted it will be generated automatically.Returns:
The new position.
Throws:
Aria2Exception
Thrown when an aria2 error occurs.