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

Name the mpdSong

This commit is contained in:
Daniel Barber 2019-05-10 15:30:59 -04:00
parent 5591cda7fa
commit 53b90a4a4a
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -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 {