From: Tom Matheussen <13683094+Tommatheussen@users.noreply.github.com> Date: Mon, 23 Feb 2026 08:28:09 +0000 (+0100) Subject: Clear internal HEOS queue before playing (#3219) X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=f84bb8ab6f65872f45dcd699085521fb1991880c;p=music-assistant-server.git Clear internal HEOS queue before playing (#3219) --- diff --git a/music_assistant/providers/heos/player.py b/music_assistant/providers/heos/player.py index abca4c10..d94bc89b 100644 --- a/music_assistant/providers/heos/player.py +++ b/music_assistant/providers/heos/player.py @@ -264,6 +264,8 @@ class HeosPlayer(Player): async def play_media(self, media: PlayerMedia) -> None: """Handle PLAY MEDIA command on given player.""" + await self._device.clear_queue() + url = await self.provider.mass.streams.resolve_stream_url(self.player_id, media) await self._device.play_url(url)