Added the port indicator (:) to the stream path in info message

This commit is contained in:
Jono Targett 2023-05-23 10:06:38 +09:30
parent e51e25be03
commit 3b9bf6d7b7

View File

@ -137,7 +137,7 @@ class Radio:
self.playback = subprocess.Popen( self.playback = subprocess.Popen(
[ [
'/usr/bin/ffmpeg', '-f', 's16le', '-ar', str(self.output_rate), '-ac', '2', '-i', '-', '/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, stdin=subprocess.PIPE,
stdout=subprocess.DEVNULL, stdout=subprocess.DEVNULL,
@ -177,7 +177,7 @@ class Radio:
self.playback = None self.playback = None
def _stream_path(self): def _stream_path(self):
return f"{Radio.PORT}/radio/{self.name}" return f":{Radio.PORT}/radio/{self.name}"
""" """