From 31ffef289b45afce5b90eb2e3b3a30ec541ec2fa Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 20 Sep 2024 15:51:02 +0200 Subject: [PATCH] change default http profile --- music_assistant/common/models/config_entries.py | 10 +++------- music_assistant/server/providers/sonos_s1/__init__.py | 4 ++-- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/music_assistant/common/models/config_entries.py b/music_assistant/common/models/config_entries.py index 2c9ebd4a..78480255 100644 --- a/music_assistant/common/models/config_entries.py +++ b/music_assistant/common/models/config_entries.py @@ -603,18 +603,14 @@ CONF_ENTRY_HTTP_PROFILE = ConfigEntry( ConfigValueOption("Profile 2 - no content length", "no_content_length"), ConfigValueOption("Profile 3 - forced content length", "forced_content_length"), ), - default_value="chunked", + default_value="no_content_length", label="HTTP Profile used for sending audio", category="advanced", description="This is considered to be a very advanced setting, only adjust this if needed, " "for example if your player stops playing halfway streams or if you experience " - "other playback related issues. In most cases the default setting, " - "'chunked transfer encoding', works just fine. \n\n", + "other playback related issues. In most cases the default setting is fine.", ) -CONF_ENTRY_HTTP_PROFILE_DEFAULT_2 = ConfigEntry.from_dict( - {**CONF_ENTRY_HTTP_PROFILE.to_dict(), "default_value": "no_content_length"} -) CONF_ENTRY_HTTP_PROFILE_FORCED_1 = ConfigEntry.from_dict( {**CONF_ENTRY_HTTP_PROFILE.to_dict(), "default_value": "chunked", "hidden": True} ) @@ -677,5 +673,5 @@ BASE_PLAYER_CONFIG_ENTRIES = ( CONF_ENTRY_HIDE_PLAYER, CONF_ENTRY_TTS_PRE_ANNOUNCE, CONF_ENTRY_SAMPLE_RATES, - CONF_ENTRY_HTTP_PROFILE_FORCED_1, + CONF_ENTRY_HTTP_PROFILE_FORCED_2, ) diff --git a/music_assistant/server/providers/sonos_s1/__init__.py b/music_assistant/server/providers/sonos_s1/__init__.py index f1de789e..6d6d075c 100644 --- a/music_assistant/server/providers/sonos_s1/__init__.py +++ b/music_assistant/server/providers/sonos_s1/__init__.py @@ -24,7 +24,7 @@ from music_assistant.common.models.config_entries import ( CONF_ENTRY_CROSSFADE, CONF_ENTRY_ENFORCE_MP3, CONF_ENTRY_FLOW_MODE_HIDDEN_DISABLED, - CONF_ENTRY_HTTP_PROFILE, + CONF_ENTRY_HTTP_PROFILE_FORCED_1, ConfigEntry, ConfigValueType, create_sample_rates_config_entry, @@ -195,7 +195,7 @@ class SonosPlayerProvider(PlayerProvider): CONF_ENTRY_SAMPLE_RATES, CONF_ENTRY_ENFORCE_MP3, CONF_ENTRY_FLOW_MODE_HIDDEN_DISABLED, - CONF_ENTRY_HTTP_PROFILE, + CONF_ENTRY_HTTP_PROFILE_FORCED_1, ) def is_device_invisible(self, ip_address: str) -> bool: -- 2.34.1