Bookmarks are added through search results and can be accessed through the library. These can be moved and deleted within the list. Add a RealDebrid instant availability cache for bookmark IA status to not overwhelm the API. Instant availability results are fresh on every search results since the cache is cleared. Also don't require a source API object to be present for the API parser button in source settings. If a JSON parser exists for a source, allow the option to be presented. Signed-off-by: kingbri <bdashore3@proton.me>
25 lines
485 B
Swift
25 lines
485 B
Swift
//
|
|
// Bookmark+CoreDataClass.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 9/2/22.
|
|
//
|
|
//
|
|
|
|
import CoreData
|
|
import Foundation
|
|
|
|
@objc(Bookmark)
|
|
public class Bookmark: NSManagedObject {
|
|
func toSearchResult() -> SearchResult {
|
|
SearchResult(
|
|
title: title,
|
|
source: source,
|
|
size: size,
|
|
magnetLink: magnetLink,
|
|
magnetHash: magnetHash,
|
|
seeders: seeders,
|
|
leechers: leechers
|
|
)
|
|
}
|
|
}
|