Skip to content

qBittorrentWebAPI

adborbas edited this page Jun 5, 2022 · 1 revision

qBittorrentWebAPI

public class qBittorrentWebAPI: qBittorrentService 

Inheritance

qBittorrentService

Initializers

init(scheme:host:port:authentication:)

public init(
        scheme: Scheme,
        host: String,
        port: Int = qBittorrentWebAPI.defaultPort,
        authentication: Authentication) 

Properties

defaultPort

public static let defaultPort = 24560

Methods

torrents(hash:)

public func torrents(hash: String?) -> AnyPublisher<[TorrentInfo], qBittorrentWebAPIError> 

addTorrent(torrentFile:configuration:)

public func addTorrent(torrentFile: URL, configuration: AddTorrentConfiguration?) -> AnyPublisher<String, qBittorrentWebAPIError> 

deleteTorrent(hash:deleteFiles:)

public func deleteTorrent(hash: String, deleteFiles: Bool) -> AnyPublisher<String, qBittorrentWebAPIError> 

categories()

public func categories() -> AnyPublisher<[TorrentCategory], qBittorrentWebAPIError> 

appPreferences()

public func appPreferences() -> AnyPublisher<AppPreferences, qBittorrentWebAPIError> 

torrentGenericProperties(hash:)

public func torrentGenericProperties(hash: String) -> AnyPublisher<TorrentGenericProperties, qBittorrentWebAPIError> 

torrentContent(hash:)

public func torrentContent(hash: String) -> AnyPublisher<[TorrentContent], qBittorrentWebAPIError> 

setFilePriority(hash:files:priority:)

public func setFilePriority(hash: String, files: Set<Int>, priority: TorrentContent.Priority) ->  AnyPublisher<String, qBittorrentWebAPIError> 

webAPIVersion()

public func webAPIVersion() -> AnyPublisher<Semver, qBittorrentWebAPIError> 

Clone this wiki locally