Aria2.JsonRpcClient

Aria2.JsonRpcClient Documentation - Home | Client | Requests | Models | Examples

AddTorrent

Overview

Represents a request to add a torrent download.


Constructors

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

Parameters:

Returns:

The GID of the newly registered download.

Throws:

Aria2Exception Thrown when an aria2 error occurs.


Top
© lantean-code - Generated on 2025-04-02