1
0
mirror of https://github.com/yattee/yattee.git synced 2025-01-10 19:40:33 +05:30

Fix stream short quality

This commit is contained in:
Arkadiusz Fal 2022-06-17 15:04:28 +02:00
parent 288b3a915e
commit 4e983c0bea

View File

@ -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 ?? "?"
} }
} }