From ed3231c9d6fcdeab89f8c34905706a1ce86ba580 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Tue, 18 Feb 2025 21:56:38 +0100 Subject: [PATCH] Fix: player metadata on radio streams for airplay --- music_assistant/providers/airplay/provider.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/music_assistant/providers/airplay/provider.py b/music_assistant/providers/airplay/provider.py index 1f15fb67..c719330c 100644 --- a/music_assistant/providers/airplay/provider.py +++ b/music_assistant/providers/airplay/provider.py @@ -296,12 +296,13 @@ class AirplayProvider(PlayerProvider): player = self.mass.players.get(player_id) if not player: return - # set the active source for the player to the media queue - # this accounts for syncgroups and linked players (e.g. sonos) - player.active_source = media.queue_id if player.synced_to: # should not happen, but just in case raise RuntimeError("Player is synced") + # set the active source for the player to the media queue + # this accounts for syncgroups and linked players (e.g. sonos) + player.active_source = media.queue_id + player.current_media = media # always stop existing stream first async with TaskManager(self.mass) as tg: for airplay_player in self._get_sync_clients(player_id): -- 2.34.1