-
Notifications
You must be signed in to change notification settings - Fork 3
qBittorrentService
adborbas edited this page Jun 5, 2022
·
1 revision
public protocol qBittorrentService List of torrents managed by the client.
func torrents(hash: String?) -> AnyPublisher<[TorrentInfo], qBittorrentWebAPIError>- hash: The hash of the torrent filtered for.
Adds a torrent to manage by the client.
func addTorrent(torrentFile: URL, configuration: AddTorrentConfiguration?) -> AnyPublisher<String, qBittorrentWebAPIError>- torrentFile: URL of the torrent file to add.
- configuration: Configuration for the new torrent.
Deletes a torrent.
func deleteTorrent(hash: String, deleteFiles: Bool) -> AnyPublisher<String, qBittorrentWebAPIError>- hash: The hash of the torrent.
- deleteFiles:
trueif the torrent's content should be deleted from the disk;falseotherwise.
List of categories of the client.
func categories() -> AnyPublisher<[TorrentCategory], qBittorrentWebAPIError>Preferences of the client.
func appPreferences() -> AnyPublisher<AppPreferences, qBittorrentWebAPIError>Generic properties of a torrent.
func torrentGenericProperties(hash: String) -> AnyPublisher<TorrentGenericProperties, qBittorrentWebAPIError>- hash: The hash of the torrent.
Content properties of a torrent.
func torrentContent(hash: String) -> AnyPublisher<[TorrentContent], qBittorrentWebAPIError>- hash: The hash of the torrent.
Set the priority for file(s).
func setFilePriority(hash: String, files: Set<Int>, priority: TorrentContent.Priority) -> AnyPublisher<String, qBittorrentWebAPIError>- hash: The hash of the torrent.
- files: Indexes of the files that the priority should be set.
- priority: The new priority to apply.
Returns the Web API version.
func webAPIVersion() -> AnyPublisher<Semver, qBittorrentWebAPIError>Generated at 2022-06-10T12:18:58+0000 using swift-doc 1.0.0-rc.1.
Types
- AddTorrentConfiguration
- AddTorrentConfiguration.Management
- AppPreferences
- BasicAuthCredentials
- Semver
- TorrentCategory
- TorrentContent
- TorrentContent.Priority
- TorrentGenericProperties
- TorrentInfo
- TorrentState
- qBittorrentWebAPI
- qBittorrentWebAPI.Authentication
- qBittorrentWebAPI.Scheme
- qBittorrentWebAPIError