mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 18:54:11 +00:00
Initial PeerTube Support
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
import Foundation
|
||||
|
||||
enum VideosApp: String, CaseIterable {
|
||||
case invidious, piped
|
||||
case local
|
||||
case invidious
|
||||
case piped
|
||||
case peerTube
|
||||
|
||||
var name: String {
|
||||
rawValue.capitalized
|
||||
}
|
||||
|
||||
var supportsAccounts: Bool {
|
||||
true
|
||||
self != .local
|
||||
}
|
||||
|
||||
var supportsPopular: Bool {
|
||||
@@ -19,6 +22,10 @@ enum VideosApp: String, CaseIterable {
|
||||
self == .invidious
|
||||
}
|
||||
|
||||
var supportsSearchSuggestions: Bool {
|
||||
self != .peerTube
|
||||
}
|
||||
|
||||
var supportsSubscriptions: Bool {
|
||||
supportsAccounts
|
||||
}
|
||||
@@ -28,7 +35,7 @@ enum VideosApp: String, CaseIterable {
|
||||
}
|
||||
|
||||
var supportsUserPlaylists: Bool {
|
||||
true
|
||||
self != .local
|
||||
}
|
||||
|
||||
var userPlaylistsEndpointIncludesVideos: Bool {
|
||||
@@ -64,6 +71,6 @@ enum VideosApp: String, CaseIterable {
|
||||
}
|
||||
|
||||
var supportsOpeningVideosByID: Bool {
|
||||
true
|
||||
self != .local
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user