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 3865c3abcb
commit 1073dbd94c
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) { func cacheSmallCover(provider: MPDAlbumArtImageDataProvider) {
let provider = MPDAlbumArtImageDataProvider(
songUri: song.mpdSong.uriString,
cacheKey: album.hash
)
_ = KingfisherManager.shared.retrieveImage( _ = KingfisherManager.shared.retrieveImage(
with: .provider(provider), with: .provider(provider),
options: [ options: [