mirror of
https://github.com/yattee/yattee.git
synced 2025-10-14 19:38:13 +00:00
Add option to disable proxying video streams for Invidious
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user