Represents a request to add a torrent download.
AddTorrent(string torrent, Aria2DownloadOptions? options = null, int? position = null, string? id = null)Adds a new BitTorrent download by uploading a torrent file (base64 encoded).options is a struct with option name/value pairs. If position is provided, the new download is inserted at that position in the waiting queue; otherwise, appended. Returns the GID of the newly registered download.
https://aria2.github.io/manual/en/html/aria2c.html#aria2.addTorrent
torrent (string): A base64 encoded torrent file.
options (Aria2DownloadOptions (optional, default: null)): Download options.
position (int (optional, default: null)): The position in the waiting queue to insert the download.
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.