mirror of
https://github.com/yattee/yattee.git
synced 2024-12-24 22:43:41 +00:00
Fix stream short quality
This commit is contained in:
parent
7e95c6be38
commit
611e820d26
@ -168,12 +168,12 @@ class Stream: Equatable, Hashable, Identifiable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var shortQuality: String {
|
var shortQuality: String {
|
||||||
if resolution.height == 2160 {
|
if resolution?.height == 2160 {
|
||||||
return "4K"
|
return "4K"
|
||||||
} else if kind == .hls {
|
} else if kind == .hls {
|
||||||
return "HLS"
|
return "HLS"
|
||||||
} else {
|
} else {
|
||||||
return resolution.name
|
return resolution?.name ?? "?"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user