Snapcast fix external server stream (#2103)
authorSantiago Soto <santiago@soto.uy>
Sat, 5 Apr 2025 13:35:15 +0000 (10:35 -0300)
committerGitHub <noreply@github.com>
Sat, 5 Apr 2025 13:35:15 +0000 (15:35 +0200)
music_assistant/providers/snapcast/__init__.py

index 491d37aeecbef0ea8a576998b0cfa80995b3ee0d..b1add931aa72c945f7df1cef612f3d6e686aa416 100644 (file)
@@ -595,6 +595,7 @@ class SnapCastProvider(PlayerProvider):
                 stream_path = stream.path
             if not stream.path:
                 stream_path = "tcp://" + stream._stream["uri"]["host"]
+            stream_path = stream_path.replace("0.0.0.0", self._snapcast_server_host)
 
             self.logger.debug("Start streaming to %s", stream_path)
             async with FFMpeg(