mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Minor fixes, extract video context menu view
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import Foundation
|
||||
import SwiftyJSON
|
||||
|
||||
final class Playlist: Identifiable, ObservableObject, Equatable, Hashable {
|
||||
struct Playlist: Identifiable, Equatable, Hashable {
|
||||
let id: String
|
||||
var title: String
|
||||
var description: String
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import Defaults
|
||||
import Foundation
|
||||
|
||||
final class Profile: ObservableObject {
|
||||
struct Profile {
|
||||
var defaultStreamResolution: DefaultStreamResolution = .hd720p
|
||||
|
||||
var skippedSegmentsCategories = [String]() // SponsorBlockSegmentsProvider.categories
|
||||
|
@@ -5,12 +5,10 @@ import SwiftyJSON
|
||||
final class SponsorBlockAPI: ObservableObject {
|
||||
static let categories = ["sponsor", "selfpromo", "outro", "intro", "music_offtopic", "interaction"]
|
||||
|
||||
@Published var video: Video?
|
||||
var id: String
|
||||
|
||||
@Published var segments = [Segment]()
|
||||
|
||||
var id: String
|
||||
|
||||
init(_ id: String) {
|
||||
self.id = id
|
||||
}
|
||||
|
@@ -3,7 +3,7 @@ import AVKit
|
||||
import Foundation
|
||||
import SwiftyJSON
|
||||
|
||||
final class Video: Identifiable, ObservableObject {
|
||||
struct Video: Identifiable {
|
||||
let id: String
|
||||
var title: String
|
||||
var thumbnailURL: URL?
|
||||
|
Reference in New Issue
Block a user