v0.7.1 #36

Merged
kingbri1 merged 59 commits from next into default 2024-06-19 21:40:26 +00:00
Showing only changes of commit 9b4f31daac - Show all commits

View file

@ -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?