From: Marcel van der Veldt Date: Tue, 18 Feb 2025 20:56:38 +0000 (+0100) Subject: Fix: player metadata on radio streams for airplay X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=ed3231c9d6fcdeab89f8c34905706a1ce86ba580;p=music-assistant-server.git Fix: player metadata on radio streams for airplay --- 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):