mirror of
https://github.com/Ferrite-iOS/Ferrite.git
synced 2026-03-11 17:45:40 +00:00
Debrid: Remove per-API IA structures
These aren't required since IA is a unified type. Only keep batch IA for RealDebrid since it helps clear up confusion when gathering InstantAvailability results. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
f9ecc746a1
commit
273403b711
3 changed files with 1 additions and 27 deletions
|
|
@ -166,17 +166,4 @@ public extension AllDebrid {
|
|||
case name = "n"
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - InstantAvailablity client side structures
|
||||
|
||||
struct IA: Codable, Hashable {
|
||||
let magnet: Magnet
|
||||
let expiryTimeStamp: Double
|
||||
var files: [IAFile]
|
||||
}
|
||||
|
||||
struct IAFile: Codable, Hashable {
|
||||
let id: Int
|
||||
let fileName: String
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,19 +51,6 @@ public extension Premiumize {
|
|||
}
|
||||
}
|
||||
|
||||
// MARK: - InstantAvailability client side structures
|
||||
|
||||
struct IA: Codable, Hashable {
|
||||
let magnet: Magnet
|
||||
let expiryTimeStamp: Double
|
||||
let files: [IAFile]
|
||||
}
|
||||
|
||||
struct IAFile: Codable, Hashable {
|
||||
let name: String
|
||||
let streamUrlString: String
|
||||
}
|
||||
|
||||
// MARK: - AllItemsResponse (listall endpoint)
|
||||
|
||||
struct AllItemsResponse: Codable {
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ public extension RealDebrid {
|
|||
var filesize: Int
|
||||
}
|
||||
|
||||
// MARK: - Instant Availability client side structures
|
||||
// MARK: - Instant Availability batch structures (used for client-side conversion)
|
||||
|
||||
struct IABatch: Codable, Hashable, Sendable {
|
||||
let files: [IABatchFile]
|
||||
|
|
|
|||
Loading…
Reference in a new issue