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:
parent
3865c3abcb
commit
1073dbd94c
@ -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: [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user