mirror of
https://github.com/Ferrite-iOS/Ferrite.git
synced 2026-01-11 20:10:27 +00:00
Premiumize: Perform a transfer if a link is present
This is required for PM's cloud since transfers will also add the files to a user's cloud rather than just fetching the DDL link. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
5a4e98f10d
commit
025d3797dc
1 changed files with 5 additions and 0 deletions
|
|
@ -653,6 +653,11 @@ public class DebridManager: ObservableObject {
|
|||
} else {
|
||||
throw Premiumize.PMError.FailedRequest(description: "There were no items or files found!")
|
||||
}
|
||||
|
||||
// Add a PM transfer if the item exists
|
||||
if let premiumizeItem = selectedPremiumizeItem {
|
||||
try await premiumize.createTransfer(magnet: premiumizeItem.magnet)
|
||||
}
|
||||
} catch {
|
||||
toastModel?.updateToastDescription("Premiumize download error: \(error)")
|
||||
print("Premiumize download error: \(error)")
|
||||
|
|
|
|||
Loading…
Reference in a new issue