mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Name the mpdSong
This commit is contained in:
parent
5591cda7fa
commit
53b90a4a4a
@ -25,10 +25,10 @@ class AlbumDataSource: NSObject, NSCollectionViewDataSource {
|
||||
|
||||
switch albums[indexPath.item].coverArt {
|
||||
case .notLoaded:
|
||||
App.mpdClient.getAlbumFirstSong(for: albums[indexPath.item].mpdAlbum) {
|
||||
guard let song = $0 else { return }
|
||||
App.mpdClient.getAlbumFirstSong(for: albums[indexPath.item].mpdAlbum) { mpdSong in
|
||||
guard let mpdSong = mpdSong else { return }
|
||||
|
||||
CoverArtService(song: Song(mpdSong: song))
|
||||
CoverArtService(song: Song(mpdSong: mpdSong))
|
||||
.fetchCoverArt()
|
||||
.done { image in
|
||||
DispatchQueue.main.async {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user