2021-06-26 23:29:55 +00:00
|
|
|
import Defaults
|
2021-06-19 20:10:14 +00:00
|
|
|
import Foundation
|
|
|
|
|
2021-06-28 15:27:53 +00:00
|
|
|
struct Profile {
|
2021-07-18 22:32:46 +00:00
|
|
|
var defaultStreamResolution: DefaultStreamResolution = .hd720pFirstThenBest
|
2021-06-19 20:10:14 +00:00
|
|
|
|
2021-06-26 11:37:24 +00:00
|
|
|
var skippedSegmentsCategories = [String]() // SponsorBlockSegmentsProvider.categories
|
2021-06-19 20:10:14 +00:00
|
|
|
|
2021-06-26 11:37:24 +00:00
|
|
|
// var sid = "B3_WzklziGu8JKefihLrCsTNavdj73KMiPUBfN5HW2M="
|
|
|
|
var sid = "RpoS7YPPK2-QS81jJF9z4KSQAjmzsOnMpn84c73-GQ8="
|
2021-06-23 22:19:58 +00:00
|
|
|
|
2021-06-26 11:37:24 +00:00
|
|
|
var cellsColumns = 3
|
2021-06-23 22:19:58 +00:00
|
|
|
}
|
|
|
|
|
2021-06-19 20:10:14 +00:00
|
|
|
enum DefaultStreamResolution: String {
|
|
|
|
case hd720pFirstThenBest, hd1080p, hd720p, sd480p, sd360p, sd240p, sd144p
|
|
|
|
|
|
|
|
var value: StreamResolution {
|
|
|
|
switch self {
|
|
|
|
case .hd720pFirstThenBest:
|
|
|
|
return .hd720p
|
|
|
|
default:
|
|
|
|
return StreamResolution(rawValue: rawValue)!
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|