yattee/Model/Profile.swift

27 lines
696 B
Swift
Raw Normal View History

2021-06-26 23:29:55 +00:00
import Defaults
2021-06-19 20:10:14 +00:00
import Foundation
struct Profile {
2021-07-22 12:43:13 +00:00
var defaultStreamResolution: DefaultStreamResolution = .hd1080p
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
2021-07-22 12:43:13 +00:00
var value: Stream.Resolution {
2021-06-19 20:10:14 +00:00
switch self {
case .hd720pFirstThenBest:
return .hd720p
default:
2021-07-22 12:43:13 +00:00
return Stream.Resolution(rawValue: rawValue)!
2021-06-19 20:10:14 +00:00
}
}
}