2021-06-27 04:59:55 +05:30
|
|
|
import Defaults
|
2021-06-20 01:40:14 +05:30
|
|
|
import Foundation
|
|
|
|
|
|
|
|
final class Profile: ObservableObject {
|
2021-06-27 04:59:55 +05:30
|
|
|
var defaultStreamResolution: DefaultStreamResolution = .hd720p
|
2021-06-20 01:40:14 +05:30
|
|
|
|
2021-06-26 17:07:24 +05:30
|
|
|
var skippedSegmentsCategories = [String]() // SponsorBlockSegmentsProvider.categories
|
2021-06-20 01:40:14 +05:30
|
|
|
|
2021-06-26 17:07:24 +05:30
|
|
|
// var sid = "B3_WzklziGu8JKefihLrCsTNavdj73KMiPUBfN5HW2M="
|
|
|
|
var sid = "RpoS7YPPK2-QS81jJF9z4KSQAjmzsOnMpn84c73-GQ8="
|
2021-06-24 03:49:58 +05:30
|
|
|
|
2021-06-26 17:07:24 +05:30
|
|
|
var cellsColumns = 3
|
2021-06-24 03:49:58 +05:30
|
|
|
}
|
|
|
|
|
2021-06-20 01:40:14 +05:30
|
|
|
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)!
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|