1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 13:50:32 +05:30
yattee/Model/Applications/VideosApp.swift

67 lines
1.1 KiB
Swift
Raw Normal View History

2021-10-21 03:51:50 +05:30
import Foundation
enum VideosApp: String, CaseIterable {
case invidious, piped
case demoApp
2021-10-21 03:51:50 +05:30
var name: String {
rawValue.capitalized
}
var supportsAccounts: Bool {
true
}
2021-10-21 03:51:50 +05:30
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 {
2021-10-21 03:51:50 +05:30
self == .invidious
}
2021-10-28 02:41:38 +05:30
var userPlaylistsUseChannelPlaylistEndpoint: Bool {
self == .piped
}
var userPlaylistsHaveVisibility: Bool {
self == .invidious
}
var userPlaylistsAreEditable: Bool {
self == .invidious
}
2021-10-28 02:41:38 +05:30
var hasFrontendURL: Bool {
self == .piped
}
2021-12-05 01:05:41 +05:30
var searchUsesIndexedPages: Bool {
self == .invidious
}
2022-06-25 04:18:57 +05:30
var supportsOpeningChannelsByName: Bool {
self == .piped
}
var allowsDisablingVidoesProxying: Bool {
self == .invidious
}
2021-10-21 03:51:50 +05:30
}