From 3b9bf6d7b7e8f4c1d48a42e71375532dc5ef7737 Mon Sep 17 00:00:00 2001 From: Jono Targett Date: Tue, 23 May 2023 10:06:38 +0930 Subject: [PATCH] Added the port indicator (:) to the stream path in info message --- radio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radio.py b/radio.py index 8ad944f..c36f949 100644 --- a/radio.py +++ b/radio.py @@ -137,7 +137,7 @@ class Radio: self.playback = subprocess.Popen( [ '/usr/bin/ffmpeg', '-f', 's16le', '-ar', str(self.output_rate), '-ac', '2', '-i', '-', - '-f', 'rtsp', f"rtsp://localhost:{self._stream_path()}" + '-f', 'rtsp', f"rtsp://localhost{self._stream_path()}" ], stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, @@ -177,7 +177,7 @@ class Radio: self.playback = None def _stream_path(self): - return f"{Radio.PORT}/radio/{self.name}" + return f":{Radio.PORT}/radio/{self.name}" """