)
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
)
# 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,
)
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