From eb33b65f3de1797620170ae607742760133a50dd Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Tue, 14 Jun 2022 18:23:15 +0200 Subject: [PATCH] Fix #161 --- Model/Applications/PipedAPI.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Applications/PipedAPI.swift b/Model/Applications/PipedAPI.swift index 924b7455..047938a6 100644 --- a/Model/Applications/PipedAPI.swift +++ b/Model/Applications/PipedAPI.swift @@ -393,7 +393,7 @@ final class PipedAPI: Service, ObservableObject, VideosAPI { let subscriptionsCount = details["uploaderSubscriberCount"]?.int let uploaded = details["uploaded"]?.doubleValue - var published = uploaded.isNil ? nil : (uploaded! / 1000).formattedAsRelativeTime() + var published = (uploaded.isNil || uploaded == -1) ? nil : (uploaded! / 1000).formattedAsRelativeTime() if published.isNil { published = (details["uploadedDate"] ?? details["uploadDate"])?.stringValue ?? "" }