mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Favorites improvements
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import Foundation
|
||||
|
||||
enum VideosApp: String, CaseIterable {
|
||||
enum AppType: String {
|
||||
case local
|
||||
case youTube
|
||||
case peerTube
|
||||
}
|
||||
|
||||
case local
|
||||
case invidious
|
||||
case piped
|
||||
@@ -10,6 +16,19 @@ enum VideosApp: String, CaseIterable {
|
||||
rawValue.capitalized
|
||||
}
|
||||
|
||||
var appType: AppType {
|
||||
switch self {
|
||||
case .local:
|
||||
return .local
|
||||
case .invidious:
|
||||
return .youTube
|
||||
case .piped:
|
||||
return .youTube
|
||||
case .peerTube:
|
||||
return .peerTube
|
||||
}
|
||||
}
|
||||
|
||||
var supportsAccounts: Bool {
|
||||
self != .local
|
||||
}
|
||||
|
Reference in New Issue
Block a user