Represents a request to change the URIs of a download.
ChangeUri(string gid, int fileIndex, IEnumerable<string> delUris, IEnumerable<string> addUris, int? position = null, string? id = null)Removes URIs specified in delUris and appends URIs in addUris for the download (and file index) denoted by gid.fileIndex is 1-based. position specifies the insertion position after deletion. Returns an array with two integers: the number of URIs deleted and the number of URIs added.
https://aria2.github.io/manual/en/html/aria2c.html#aria2.changeUri
gid (string): The GID of the download.
fileIndex (int): The 1-based file index.
delUris (System.Collections.Generic.IEnumerable<string>): List of URIs to remove.
addUris (System.Collections.Generic.IEnumerable<string>): List of URIs to add.
position (int (optional, default: null)): Optional insertion position (0-based) after deletion.
id (string (optional, default: null)): The tracking id for the request. If this is omitted it will be generated automatically.Returns:
An array of two integers: [number deleted, number added].
Throws:
Aria2Exception
Thrown when an aria2 error occurs.