mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Refactor
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user