This commit is contained in:
Arkadiusz Fal 2022-06-14 18:23:15 +02:00
parent 1c71520d6f
commit eb33b65f3d

View File

@ -393,7 +393,7 @@ final class PipedAPI: Service, ObservableObject, VideosAPI {
let subscriptionsCount = details["uploaderSubscriberCount"]?.int let subscriptionsCount = details["uploaderSubscriberCount"]?.int
let uploaded = details["uploaded"]?.doubleValue 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 { if published.isNil {
published = (details["uploadedDate"] ?? details["uploadDate"])?.stringValue ?? "" published = (details["uploadedDate"] ?? details["uploadDate"])?.stringValue ?? ""
} }