From b9bb694f5f6b749297d886e02ccdae03ee76037c Mon Sep 17 00:00:00 2001 From: Paul Halpin Date: Mon, 16 Oct 2023 12:11:11 +0100 Subject: [PATCH] artist song shuffle fix --- HalpoPlayer/View Models/ArtistViewModel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/HalpoPlayer/View Models/ArtistViewModel.swift b/HalpoPlayer/View Models/ArtistViewModel.swift index a3f401b..0e07b55 100644 --- a/HalpoPlayer/View Models/ArtistViewModel.swift +++ b/HalpoPlayer/View Models/ArtistViewModel.swift @@ -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)