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}" """