Merge pull request #688 from patelhiren/main

Fix thumbnails failing to load on tvOS
This commit is contained in:
Arkadiusz Fal 2024-05-23 11:34:19 +02:00 committed by GitHub
commit fa712d8177
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -154,7 +154,12 @@ struct YatteeApp: App {
#if DEBUG #if DEBUG
SiestaLog.Category.enabled = .common SiestaLog.Category.enabled = .common
#endif #endif
SDImageCodersManager.shared.addCoder(SDImageAWebPCoder.shared) #if os(tvOS)
SDImageCodersManager.shared.addCoder(SDImageWebPCoder.shared)
#else
SDImageCodersManager.shared.addCoder(SDImageAWebPCoder.shared)
#endif
SDWebImageManager.defaultImageCache = PINCache(name: "stream.yattee.app") SDWebImageManager.defaultImageCache = PINCache(name: "stream.yattee.app")
if !Defaults[.lastAccountIsPublic] { if !Defaults[.lastAccountIsPublic] {