diff --git a/syncplay/players/vlc.py b/syncplay/players/vlc.py index 3f8014656..c357119c7 100755 --- a/syncplay/players/vlc.py +++ b/syncplay/players/vlc.py @@ -216,6 +216,7 @@ def displayMessage( duration=constants.OSD_DURATION * 1000, OSDType=constants.OSD_DURATION, mood=constants.MESSAGE_NEUTRAL ): duration /= 1000 + message = message.replace('\r', '').replace('\n', '') if OSDType != constants.OSD_ALERT: self._listener.sendLine('display-osd: {}, {}, {}'.format('top-right', duration, message)) else: @@ -253,6 +254,7 @@ def getMRL(self, fileURL): return fileURL def openFile(self, filePath, resetPosition=False): + filePath = filePath.replace('\r', '').replace('\n', '') if not utils.isURL(filePath): normedPath = os.path.normpath(filePath) if os.path.isfile(normedPath):