mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 18:54:11 +00:00
Add Periphery configuration, remove unused code
This commit is contained in:
@@ -171,10 +171,6 @@ final class InvidiousAPI: Service, ObservableObject {
|
||||
resource(baseURL: account.url, path: "\(InvidiousAPI.basePath)/auth/feed")
|
||||
}
|
||||
|
||||
var stats: Resource {
|
||||
resource(baseURL: account.url, path: basePathAppending("stats"))
|
||||
}
|
||||
|
||||
var subscriptions: Resource {
|
||||
resource(baseURL: account.url, path: basePathAppending("auth/subscriptions"))
|
||||
}
|
||||
|
@@ -11,8 +11,6 @@ final class NavigationModel: ObservableObject {
|
||||
@Published var showingVideo = false
|
||||
@Published var video: Video?
|
||||
|
||||
@Published var returnToDetails = false
|
||||
|
||||
@Published var presentingAddToPlaylist = false
|
||||
@Published var videoToAddToPlaylist: Video!
|
||||
|
||||
|
@@ -4,10 +4,6 @@ import Foundation
|
||||
final class RecentsModel: ObservableObject {
|
||||
@Default(.recentlyOpened) var items
|
||||
|
||||
var isEmpty: Bool {
|
||||
items.isEmpty
|
||||
}
|
||||
|
||||
func clear() {
|
||||
items = []
|
||||
}
|
||||
|
@@ -87,18 +87,6 @@ class Stream: Equatable, Hashable {
|
||||
assets.dropFirst().allSatisfy { $0 == assets.first }
|
||||
}
|
||||
|
||||
var assetsLoaded: Bool {
|
||||
assets.allSatisfy { $0.statusOfValue(forKey: "playable", error: nil) == .loaded }
|
||||
}
|
||||
|
||||
var loadedAssets: [AVURLAsset] {
|
||||
assets.filter { $0.statusOfValue(forKey: "playable", error: nil) == .loaded }
|
||||
}
|
||||
|
||||
func cancelLoadingAssets() {
|
||||
assets.forEach { $0.cancelLoading() }
|
||||
}
|
||||
|
||||
static func == (lhs: Stream, rhs: Stream) -> Bool {
|
||||
lhs.resolution == rhs.resolution && lhs.kind == rhs.kind
|
||||
}
|
||||
|
Reference in New Issue
Block a user