Fix use playerid for http profile
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 20 Feb 2026 23:55:06 +0000 (00:55 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 20 Feb 2026 23:55:06 +0000 (00:55 +0100)
music_assistant/controllers/streams/streams_controller.py

index 67e7e251ce926a04baba37d43dc1eba8be2529fb..ecdb25cfe565cdcc1190c3eb8c3ab04c587459ee 100644 (file)
@@ -463,7 +463,7 @@ class StreamsController(CoreController):
         )
         resp.content_type = f"audio/{output_format.output_format_str}"
         http_profile = await self.mass.config.get_player_config_value(
-            queue_id, CONF_HTTP_PROFILE, default="default", return_type=str
+            player_id, CONF_HTTP_PROFILE, default="default", return_type=str
         )
         if http_profile == "forced_content_length" and not queue_item.duration:
             # just set an insane high content length to make sure the player keeps playing
@@ -602,7 +602,7 @@ class StreamsController(CoreController):
         )
         # work out ICY metadata support
         icy_preference = self.mass.config.get_raw_player_config_value(
-            queue_id,
+            player_id,
             CONF_ENTRY_ENABLE_ICY_METADATA.key,
             CONF_ENTRY_ENABLE_ICY_METADATA.default_value,
         )
@@ -626,7 +626,7 @@ class StreamsController(CoreController):
             headers=headers,
         )
         http_profile = await self.mass.config.get_player_config_value(
-            queue_id, CONF_HTTP_PROFILE, default="default", return_type=str
+            player_id, CONF_HTTP_PROFILE, default="default", return_type=str
         )
         if http_profile == "forced_content_length":
             # just set an insane high content length to make sure the player keeps playing