Ferrite-backup/Ferrite/DataManagement/Classes/Bookmark+CoreDataClass.swift
kingbri 2f870b9410 Ferrite: Add bookmarks
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>
2022-09-16 12:33:18 -04:00

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
)
}
}