QBittorrentClient
qBittorrent Web API wrapper.
https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-4.1)
Parameters
The base URL of qBittorrent, ex. http://localhost:8080
The qBittorrent username, default: admin
The qBittorrent password, default: adminadmin
The sync endpoint polling rate when subscribed to a Flow, defaults to 5 seconds.
Custom HTTPClient, useful when a default client engine is not used
Coroutine dispatcher for flow API processing, defaults to Dispatchers.Default.
Properties
Returns true when observeMainData or observeTorrent have at least one subscriber, meaning the syncing endpoint is being polled at syncInterval.
Functions
Add torrents from server local file or from URLs. http://, https://, magnet: and bc://bt/ links are supported.
Delete one or more torrents.
Get the Web API version.
Get the build info
Get the default torrent save path, ex. /user/home/downloads
The response is the value of current global download speed limit in bytes/second; this value will be zero if no limit is applied.
The response is the value of current global upload speed limit in bytes/second; this value will be zero if no limit is applied.
Get piece hashes for the torrent at hash.
Get piece states for the torrent at hash.
Get the qBittorrent application preferences.
The response is 1 if alternative speed limits are enabled, 0 otherwise.
Get the TorrentFiles for hash or an empty list if not yet not available.
Get the application version.
Emits the next MainData every syncInterval while subscribed.
Emits the latest Torrent data for the hash. If the torrent is removed or not found, the flow will complete unless waitIfMissing is true.
Emits the latest TorrentPeers data for the hash. If the torrent is removed or not found, the flow will complete.
Pause one or more torrents
Reannounce a torrent.
Recheck a torrent in qBittorrent.
Resume one or more torrents
Set one or more qBittorrent application preferences.