1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00

We can just reuse the same provider

This commit is contained in:
Daniel Barber 2020-02-14 14:22:18 -05:00
parent 8d24d9df19
commit f39f69b4dc
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -147,15 +147,10 @@ class AlbumDetailView: NSViewController {
]
)
cacheSmallCover(song: song, album: album)
cacheSmallCover(provider: provider)
}
func cacheSmallCover(song: Song, album: Album) {
let provider = MPDAlbumArtImageDataProvider(
songUri: song.mpdSong.uriString,
cacheKey: album.hash
)
func cacheSmallCover(provider: MPDAlbumArtImageDataProvider) {
_ = KingfisherManager.shared.retrieveImage(
with: .provider(provider),
options: [