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

Fix bug adding albums to queue

This commit is contained in:
Daniel Barber 2020-02-24 08:25:21 -05:00
parent 770a01c604
commit 1077475552
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
2 changed files with 6 additions and 2 deletions

View File

@ -111,7 +111,9 @@ extension MPDClient {
func albumSongs(for album: MPDAlbum, callback: ([MPDSong]) -> Void) {
guard isConnected else { return }
let songs = searchSongs([MPDTag.album: album.title, MPDTag.albumArtist: album.artist])
let songs = searchSongs(
[MPDTag.album: album.title, MPDTag.albumArtist: album.artist]
)
callback(songs)
}

View File

@ -112,7 +112,9 @@ extension MPDClient {
}
func sendAddAlbumToQueue(album: MPDAlbum, at queuePos: Int) {
let songs = searchSongs([MPDTag.album: album.title, MPDTag.artist: album.artist])
let songs = searchSongs(
[MPDTag.album: album.title, MPDTag.albumArtist: album.artist]
)
var insertPos = UInt32(queuePos)