Commit b988f0dc authored by David Trattnig's avatar David Trattnig
Browse files

Namespace fix and refactor note. #65 #72

parent d38fcf67
...@@ -35,6 +35,8 @@ class LiquidSoapClient: ...@@ -35,6 +35,8 @@ class LiquidSoapClient:
LiquidSoapClient Class LiquidSoapClient Class
Connects to a LiquidSoap instance over a socket and sends commands to it Connects to a LiquidSoap instance over a socket and sends commands to it
#TODO Refactor class: https://gitlab.servus.at/aura/engine/-/issues/65
""" """
mutex = None mutex = None
logger = None logger = None
...@@ -191,7 +193,7 @@ class LiquidSoapClient: ...@@ -191,7 +193,7 @@ class LiquidSoapClient:
param = (param.strip() if param.strip() == "" else " " + urllib.parse.unquote(param.strip())) param = (param.strip() if param.strip() == "" else " " + urllib.parse.unquote(param.strip()))
if self.connected: if self.connected:
# print namespace + '.' + command + param + "\n" # print namespace + '.' + command + param + "\n"
if namespace is "": if namespace == "":
message = str(command) + str(param) + str("\n") message = str(command) + str(param) + str("\n")
else: else:
message = str(namespace) + str(".") + str(command) + str(param) + str("\n") message = str(namespace) + str(".") + str(command) + str(param) + str("\n")
......
...@@ -30,6 +30,8 @@ from src.client.playerclient import LiquidSoapPlayerClient ...@@ -30,6 +30,8 @@ from src.client.playerclient import LiquidSoapPlayerClient
class PlayerConnector(): class PlayerConnector():
""" """
Establishes a Socket connection to Liquidsoap. Establishes a Socket connection to Liquidsoap.
#TODO Refactor class: https://gitlab.servus.at/aura/engine/-/issues/65
""" """
client = None client = None
logger = None logger = None
......
...@@ -22,6 +22,8 @@ from src.client.client import LiquidSoapClient ...@@ -22,6 +22,8 @@ from src.client.client import LiquidSoapClient
class LiquidSoapPlayerClient(LiquidSoapClient): class LiquidSoapPlayerClient(LiquidSoapClient):
#TODO Refactor class: https://gitlab.servus.at/aura/engine/-/issues/65
# #
# Mixer # Mixer
# #
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment