Plugins are now a unified format for both sources and actions. Actions dictate what to do with a link and can now be added through a plugin JSON file. Backups have also been versioned to improve performance and add action support. Tags are used to give small amounts of information before a user installs a plugin. Signed-off-by: kingbri <bdashore3@proton.me>
38 lines
911 B
Swift
38 lines
911 B
Swift
//
|
|
// Bookmark+CoreDataProperties.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 9/3/22.
|
|
//
|
|
//
|
|
|
|
import CoreData
|
|
import Foundation
|
|
|
|
public extension Bookmark {
|
|
@nonobjc class func fetchRequest() -> NSFetchRequest<Bookmark> {
|
|
NSFetchRequest<Bookmark>(entityName: "Bookmark")
|
|
}
|
|
|
|
@NSManaged var leechers: String?
|
|
@NSManaged var magnetHash: String?
|
|
@NSManaged var magnetLink: String?
|
|
@NSManaged var seeders: String?
|
|
@NSManaged var size: String?
|
|
@NSManaged var source: String
|
|
@NSManaged var title: String?
|
|
@NSManaged var orderNum: Int16
|
|
|
|
func toSearchResult() -> SearchResult {
|
|
SearchResult(
|
|
title: title,
|
|
source: source,
|
|
size: size,
|
|
magnet: Magnet(hash: magnetHash, link: magnetLink),
|
|
seeders: seeders,
|
|
leechers: leechers
|
|
)
|
|
}
|
|
}
|
|
|
|
extension Bookmark: Identifiable {}
|