Add option to disable proxying video streams for Invidious

This commit is contained in:
Arkadiusz Fal
2022-07-21 23:52:09 +02:00
parent 6ce9ed3063
commit 827c64719c
7 changed files with 42 additions and 12 deletions

View File

@@ -9,13 +9,15 @@ struct Instance: Defaults.Serializable, Hashable, Identifiable {
let name: String
let apiURL: String
var frontendURL: String?
var proxiesVideos: Bool
init(app: VideosApp, id: String? = nil, name: String, apiURL: String, frontendURL: String? = nil) {
init(app: VideosApp, id: String? = nil, name: String, apiURL: String, frontendURL: String? = nil, proxiesVideos: Bool = false) {
self.app = app
self.id = id ?? UUID().uuidString
self.name = name
self.apiURL = apiURL
self.frontendURL = frontendURL
self.proxiesVideos = proxiesVideos
}
var anonymous: VideosAPI {