From 611e820d265e138f7e3979b017568eca22268628 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Fri, 17 Jun 2022 15:04:28 +0200 Subject: [PATCH] Fix stream short quality --- Model/Stream.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Model/Stream.swift b/Model/Stream.swift index 152e450b..12a916f7 100644 --- a/Model/Stream.swift +++ b/Model/Stream.swift @@ -168,12 +168,12 @@ class Stream: Equatable, Hashable, Identifiable { } var shortQuality: String { - if resolution.height == 2160 { + if resolution?.height == 2160 { return "4K" } else if kind == .hls { return "HLS" } else { - return resolution.name + return resolution?.name ?? "?" } }