add_torrent
Add torrents from magnet links, URLs, local .torrent files, or base64 metainfo while configuring download location, paused state, labels, file priorities, and peer limits.
Instructions
Add a torrent from a magnet link, a URL, a local file or raw metainfo.
Args: filename: A magnet link or the URL of a .torrent file. torrent_file: Path to a .torrent file on this machine, read and encoded for you. metainfo: Base64 .torrent contents, if you already have them. download_dir: Where to put the data. Defaults to the session setting. paused: Add without starting. labels: Labels to attach. peer_limit: Maximum peers for this torrent. bandwidth_priority: -1 low, 0 normal, 1 high. files_wanted: Indices of files to download. Omit for all. files_unwanted: Indices of files to skip. priority_high: Indices of files to fetch first. priority_low: Indices of files to fetch last. priority_normal: Indices of files at normal priority. cookies: Cookies to send when fetching a .torrent URL. sequential_download: Download pieces in order rather than rarest first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | No | ||
| paused | No | ||
| cookies | No | ||
| filename | No | ||
| metainfo | No | ||
| peer_limit | No | ||
| download_dir | No | ||
| files_wanted | No | ||
| priority_low | No | ||
| torrent_file | No | ||
| priority_high | No | ||
| files_unwanted | No | ||
| priority_normal | No | ||
| bandwidth_priority | No | ||
| sequential_download | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |