mirror of
https://github.com/yattee/yattee.git
synced 2024-11-14 01:58:24 +00:00
50 lines
818 B
Swift
50 lines
818 B
Swift
import Foundation
|
|
|
|
enum VideosApp: String, CaseIterable {
|
|
case invidious, piped
|
|
|
|
var name: String {
|
|
rawValue.capitalized
|
|
}
|
|
|
|
var supportsAccounts: Bool {
|
|
true
|
|
}
|
|
|
|
var accountsUsePassword: Bool {
|
|
self == .piped
|
|
}
|
|
|
|
var supportsPopular: Bool {
|
|
self == .invidious
|
|
}
|
|
|
|
var supportsSearchFilters: Bool {
|
|
self == .invidious
|
|
}
|
|
|
|
var supportsSubscriptions: Bool {
|
|
supportsAccounts
|
|
}
|
|
|
|
var supportsTrendingCategories: Bool {
|
|
self == .invidious
|
|
}
|
|
|
|
var supportsUserPlaylists: Bool {
|
|
self == .invidious
|
|
}
|
|
|
|
var hasFrontendURL: Bool {
|
|
self == .piped
|
|
}
|
|
|
|
var supportsComments: Bool {
|
|
self == .piped
|
|
}
|
|
|
|
var searchUsesIndexedPages: Bool {
|
|
self == .invidious
|
|
}
|
|
}
|