From 66693d6d66a1a6d27aa0ae74261f9cb7101fb5e4 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Thu, 17 Oct 2024 12:14:49 +0200 Subject: [PATCH] fix typo in stream parsing --- music_assistant/server/helpers/audio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/music_assistant/server/helpers/audio.py b/music_assistant/server/helpers/audio.py index b871ae30..eda1fbb4 100644 --- a/music_assistant/server/helpers/audio.py +++ b/music_assistant/server/helpers/audio.py @@ -228,8 +228,8 @@ async def get_stream_details( # work out how to handle radio stream if ( - streamdetails.media_type in (MediaType.RADIO, StreamType.ICY, StreamType.HLS) - and streamdetails.stream_type == StreamType.HTTP + streamdetails.stream_type in (StreamType.ICY, StreamType.HLS, StreamType.HTTP) + and streamdetails.media_type == MediaType.RADIO ): resolved_url, is_icy, is_hls = await resolve_radio_stream(mass, streamdetails.path) streamdetails.path = resolved_url -- 2.34.1