Commit b988f0dc authored by david's avatar david
Browse files

Namespace fix and refactor note. #65 #72

parent d38fcf67
......@@ -35,6 +35,8 @@ class LiquidSoapClient:
LiquidSoapClient Class
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
logger = None
......@@ -191,7 +193,7 @@ class LiquidSoapClient:
param = (param.strip() if param.strip() == "" else " " + urllib.parse.unquote(param.strip()))
if self.connected:
# print namespace + '.' + command + param + "\n"
if namespace is "":
if namespace == "":
message = str(command) + str(param) + str("\n")
else:
message = str(namespace) + str(".") + str(command) + str(param) + str("\n")
......
......@@ -30,6 +30,8 @@ from src.client.playerclient import LiquidSoapPlayerClient
class PlayerConnector():
"""
Establishes a Socket connection to Liquidsoap.
#TODO Refactor class: https://gitlab.servus.at/aura/engine/-/issues/65
"""
client = None
logger = None
......
......@@ -22,6 +22,8 @@ from src.client.client import LiquidSoapClient
class LiquidSoapPlayerClient(LiquidSoapClient):
#TODO Refactor class: https://gitlab.servus.at/aura/engine/-/issues/65
#
# 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