mirror of
https://github.com/yattee/yattee.git
synced 2025-01-06 01:20:31 +05:30
34 lines
569 B
Swift
34 lines
569 B
Swift
|
import Foundation
|
||
|
|
||
|
enum VideosApp: String, CaseIterable {
|
||
|
case invidious, piped
|
||
|
|
||
|
var name: String {
|
||
|
rawValue.capitalized
|
||
|
}
|
||
|
|
||
|
var supportsAccounts: Bool {
|
||
|
self == .invidious
|
||
|
}
|
||
|
|
||
|
var supportsPopular: Bool {
|
||
|
self == .invidious
|
||
|
}
|
||
|
|
||
|
var supportsSearchFilters: Bool {
|
||
|
self == .invidious
|
||
|
}
|
||
|
|
||
|
var supportsSubscriptions: Bool {
|
||
|
supportsAccounts
|
||
|
}
|
||
|
|
||
|
var supportsTrendingCategories: Bool {
|
||
|
self == .invidious
|
||
|
}
|
||
|
|
||
|
var supportsUserPlaylists: Bool {
|
||
|
self == .invidious
|
||
|
}
|
||
|
}
|