Skip to content

Commit

Permalink
artist song shuffle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Halpin committed Oct 16, 2023
1 parent 61b3a82 commit b9bb694
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions HalpoPlayer/View Models/ArtistViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class ArtistViewModel: ObservableObject {
let respones = try await SubsonicClient.shared.getAlbum(id: album.id)
songs.append(contentsOf: respones.subsonicResponse.album.song)
}
songs = songs.shuffled()
let finalSongs = songs
DispatchQueue.main.async {
self.player.play(songs:finalSongs, index: 0)
Expand Down

0 comments on commit b9bb694

Please sign in to comment.