From: Marcel van der Veldt Date: Mon, 1 Dec 2025 01:34:57 +0000 (+0100) Subject: Change stream controller settings X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=49ff4b8802640e8807778a9707e6ea2bafc75644;p=music-assistant-server.git Change stream controller settings --- diff --git a/music_assistant/controllers/streams/streams_controller.py b/music_assistant/controllers/streams/streams_controller.py index 8805788d..c5a20666 100644 --- a/music_assistant/controllers/streams/streams_controller.py +++ b/music_assistant/controllers/streams/streams_controller.py @@ -62,9 +62,7 @@ from music_assistant.constants import ( VERBOSE_LOG_LEVEL, ) from music_assistant.controllers.players.player_controller import AnnounceData -from music_assistant.controllers.streams.smart_fades import ( - SmartFadesMixer, -) +from music_assistant.controllers.streams.smart_fades import SmartFadesMixer from music_assistant.controllers.streams.smart_fades.analyzer import SmartFadesAnalyzer from music_assistant.controllers.streams.smart_fades.fades import SMART_CROSSFADE_DURATION from music_assistant.helpers.audio import LOGGER as AUDIO_LOGGER @@ -189,25 +187,6 @@ class StreamsController(CoreController): ip_addresses = await get_ip_addresses() default_port = await select_free_port(8097, 9200) return ( - ConfigEntry( - key=CONF_PUBLISH_IP, - type=ConfigEntryType.STRING, - default_value=ip_addresses[0], - label="Published IP address", - description="This IP address is communicated to players where to find this server." - "\nMake sure that this IP can be reached by players on the local network, " - "otherwise audio streaming will not work.", - required=False, - ), - ConfigEntry( - key=CONF_BIND_PORT, - type=ConfigEntryType.INTEGER, - default_value=default_port, - label="TCP Port", - description="The TCP port to run the server. " - "Make sure that this server can be reached " - "on the given IP and TCP port by players on the local network.", - ), ConfigEntry( key=CONF_ALLOW_BUFFER, type=ConfigEntryType.BOOLEAN, @@ -272,6 +251,27 @@ class StreamsController(CoreController): "that are part of the same album.", category="audio", ), + ConfigEntry( + key=CONF_PUBLISH_IP, + type=ConfigEntryType.STRING, + default_value=ip_addresses[0], + label="Published IP address", + description="This IP address is communicated to players where to find this server." + "\nMake sure that this IP can be reached by players on the local network, " + "otherwise audio streaming will not work.", + required=False, + category="advanced", + ), + ConfigEntry( + key=CONF_BIND_PORT, + type=ConfigEntryType.INTEGER, + default_value=default_port, + label="TCP Port", + description="The TCP port to run the server. " + "Make sure that this server can be reached " + "on the given IP and TCP port by players on the local network.", + category="advanced", + ), ConfigEntry( key=CONF_BIND_IP, type=ConfigEntryType.STRING,