From 853efa6968d9856a1e6015320179d50824db96de Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Fri, 11 Mar 2022 23:28:59 +0000 Subject: [PATCH] Fix file manager using single msg queue. --- file_manager.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/file_manager.py b/file_manager.py index c19799c..f635418 100644 --- a/file_manager.py +++ b/file_manager.py @@ -65,11 +65,14 @@ class FileManager: else: try: - split = message.split(":", 1) + split = message.split(":", 3) channel = int(split[0]) # source = split[1] command = split[2] + # rest of message = split[3] + + self.logger.log.debug("Got command {} for channel {}".format(command,channel)) # If we have requested a new show plan, empty the music-tmp directory for the previous show. if command == "GETPLAN": @@ -150,8 +153,8 @@ class FileManager: except Exception: self.logger.log.exception( - "Failed to handle message {} on channel {}.".format( - message, channel + "Failed to handle message {}.".format( + message ) )