fix typo in stream parsing
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 17 Oct 2024 10:14:49 +0000 (12:14 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 17 Oct 2024 10:14:49 +0000 (12:14 +0200)
music_assistant/server/helpers/audio.py

index b871ae309278ed30da42ec45eb164e3a0f93df4f..eda1fbb49f103d5d00f31652c8d3d82abf856af2 100644 (file)
@@ -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