diff --git a/Ferrite/Protocols/Debrid.swift b/Ferrite/Protocols/Debrid.swift index 0ec910f..2cf867f 100644 --- a/Ferrite/Protocols/Debrid.swift +++ b/Ferrite/Protocols/Debrid.swift @@ -21,13 +21,18 @@ protocol DebridSource: AnyObservableObject { // Manual API key var manualToken: String? { get } + // Instant availability variables + var IAValues: [DebridIA] { get set } + + // Cloud variables + var cloudDownloads: [DebridCloudDownload] { get set } + var cloudTorrents: [DebridCloudTorrent] { get set } + var cloudTTL: Double { get set } + // Common authentication functions func setApiKey(_ key: String) func logout() async - // Instant availability variables - var IAValues: [DebridIA] { get set } - // Instant availability functions func instantAvailability(magnets: [Magnet]) async throws @@ -36,11 +41,6 @@ protocol DebridSource: AnyObservableObject { // Torrents also checked here func getDownloadLink(magnet: Magnet, ia: DebridIA?, iaFile: DebridIAFile?) async throws -> String - // Cloud variables - var cloudDownloads: [DebridCloudDownload] { get set } - var cloudTorrents: [DebridCloudTorrent] { get set } - var cloudTTL: Double { get set } - // User downloads functions func getUserDownloads() async throws func checkUserDownloads(link: String) async throws -> String?