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 {
|
switch albums[indexPath.item].coverArt {
|
||||||
case .notLoaded:
|
case .notLoaded:
|
||||||
App.mpdClient.getAlbumFirstSong(for: albums[indexPath.item].mpdAlbum) {
|
App.mpdClient.getAlbumFirstSong(for: albums[indexPath.item].mpdAlbum) { mpdSong in
|
||||||
guard let song = $0 else { return }
|
guard let mpdSong = mpdSong else { return }
|
||||||
|
|
||||||
CoverArtService(song: Song(mpdSong: song))
|
CoverArtService(song: Song(mpdSong: mpdSong))
|
||||||
.fetchCoverArt()
|
.fetchCoverArt()
|
||||||
.done { image in
|
.done { image in
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user