Channels caching

This commit is contained in:
Arkadiusz Fal
2022-12-14 00:07:32 +01:00
parent d9622cf24c
commit 3b31f21c81
18 changed files with 151 additions and 18 deletions

View File

@@ -69,7 +69,7 @@ struct Video: Identifiable, Equatable, Hashable {
views: Int = 0,
description: String? = nil,
genre: String? = nil,
channel: Channel = .init(id: "", name: ""),
channel: Channel? = nil,
thumbnails: [Thumbnail] = [],
indexID: String? = nil,
live: Bool = false,
@@ -96,7 +96,7 @@ struct Video: Identifiable, Equatable, Hashable {
self.views = views
self.description = description
self.genre = genre
self.channel = channel
self.channel = channel ?? .init(app: app, id: "", name: "")
self.thumbnails = thumbnails
self.indexID = indexID
self.live = live