mirror of
https://github.com/yattee/yattee.git
synced 2024-11-14 01:58:24 +00:00
67 lines
1.1 KiB
Swift
67 lines
1.1 KiB
Swift
import Foundation
|
|
|
|
enum VideosApp: String, CaseIterable {
|
|
case invidious, piped
|
|
case demoApp
|
|
|
|
var name: String {
|
|
rawValue.capitalized
|
|
}
|
|
|
|
var supportsAccounts: Bool {
|
|
true
|
|
}
|
|
|
|
var supportsPopular: Bool {
|
|
self == .invidious
|
|
}
|
|
|
|
var supportsSearchFilters: Bool {
|
|
self == .invidious
|
|
}
|
|
|
|
var supportsSubscriptions: Bool {
|
|
supportsAccounts
|
|
}
|
|
|
|
var supportsTrendingCategories: Bool {
|
|
self == .invidious
|
|
}
|
|
|
|
var supportsUserPlaylists: Bool {
|
|
true
|
|
}
|
|
|
|
var userPlaylistsEndpointIncludesVideos: Bool {
|
|
self == .invidious
|
|
}
|
|
|
|
var userPlaylistsUseChannelPlaylistEndpoint: Bool {
|
|
self == .piped
|
|
}
|
|
|
|
var userPlaylistsHaveVisibility: Bool {
|
|
self == .invidious
|
|
}
|
|
|
|
var userPlaylistsAreEditable: Bool {
|
|
self == .invidious
|
|
}
|
|
|
|
var hasFrontendURL: Bool {
|
|
self == .piped
|
|
}
|
|
|
|
var searchUsesIndexedPages: Bool {
|
|
self == .invidious
|
|
}
|
|
|
|
var supportsOpeningChannelsByName: Bool {
|
|
self == .piped
|
|
}
|
|
|
|
var allowsDisablingVidoesProxying: Bool {
|
|
self == .invidious
|
|
}
|
|
}
|