Represents a request to add a Metalink download.
AddMetalink(string metalink, Aria2DownloadOptions? options = null, int? position = null, string? id = null)Adds new downloads from a Metalink file (base64 encoded).options is a struct with option name/value pairs. If position is provided, the downloads are inserted at that position; otherwise, appended. Returns the GID of the newly registered download.
https://aria2.github.io/manual/en/html/aria2c.html#aria2.addMetalink
metalink (string): A base64 encoded Metalink file.
options (Aria2DownloadOptions (optional, default: null)): Download options.
position (int (optional, default: null)): The position in the waiting queue to insert the downloads.
id (string (optional, default: null)): The tracking id for the request. If this is omitted it will be generated automatically.Returns:
The GID of the newly registered download.
Throws:
Aria2Exception
Thrown when an aria2 error occurs.