This commit is contained in:
Arkadiusz Fal
2022-12-16 20:37:05 +01:00
parent b621eba236
commit f39b440b21
9 changed files with 34 additions and 18 deletions

View File

@@ -82,8 +82,8 @@ struct FavoriteItemView: View {
ChannelsCacheModel.shared.store(channel)
}
}
case let .channelPlaylist(_, id, _):
if let cache = ChannelPlaylistsCacheModel.shared.retrievePlaylist(id),
case let .channelPlaylist(_, id, title):
if let cache = ChannelPlaylistsCacheModel.shared.retrievePlaylist(.init(id: id, title: title)),
!cache.videos.isEmpty
{
contentItems = ContentItem.array(of: cache.videos)