Interface AddTorrentOptions

interface AddTorrentOptions {
    category: string;
    contentLayout: "Original" | "Subfolder" | "NoSubfolder";
    dlLimit: number;
    filename: string;
    firstLastPiecePrio: TrueFalseStr;
    paused: TrueFalseStr;
    ratioLimit: number;
    rename: string;
    savepath: string;
    seedingTimeLimit: number;
    sequentialDownload: TrueFalseStr;
    skip_checking: TrueFalseStr;
    upLimit: number;
    useAutoTMM: TrueFalseStr;
}

Properties

category: string

Category for the torrent

contentLayout: "Original" | "Subfolder" | "NoSubfolder"

Control filesystem structure for content (added in Web API v2.7) Migrating from rootFolder example rootFolder ? 'Original' : 'NoSubfolder'

dlLimit: number

Set torrent download speed limit. Unit in bytes/second

filename: string

not totally sure what its for but its required NOTE: not included in deluge options blob. This should be removed and passed in seperatly. Added to AddTorrentOptions to make the api's more similar with other clients default: torrent

firstLastPiecePrio: TrueFalseStr

Prioritize download first last piece. Possible values are true, false (default)

paused: TrueFalseStr

Add torrents in the paused state. Possible values are true, false (default)

ratioLimit: number

Set torrent share ratio limit

rename: string

Rename torrent

savepath: string

Download folder

seedingTimeLimit: number

Set torrent seeding time limit. Unit in seconds

sequentialDownload: TrueFalseStr

Enable sequential download. Possible values are true, false (default)

skip_checking: TrueFalseStr

Skip hash checking. Possible values are true, false (default)

upLimit: number

Set torrent upload speed limit. Unit in bytes/second

useAutoTMM: TrueFalseStr

Whether Automatic Torrent Management should be used, disables use of savepath