From f6569db418fbf3457c26c954a04c31dfc9b6c78f Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 23 Apr 2023 13:11:30 +0200 Subject: [PATCH] Fix crash --- Model/Video.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Model/Video.swift b/Model/Video.swift index 4913d123..f9476c9f 100644 --- a/Model/Video.swift +++ b/Model/Video.swift @@ -295,8 +295,8 @@ struct Video: Identifiable, Equatable, Hashable { } var localStreamIsRemoteURL: Bool { - guard let localStream else { return false } - return !localStream.localURL.isFileURL + guard let url = localStream?.localURL else { return false } + return url.isFileURL } var localStreamIsDirectory: Bool {