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

Added clear fs queue to Liquidsoap API.

parent 4e7591c1
......@@ -72,6 +72,9 @@ class LiquidSoapPlayerClient(LiquidSoapClient):
if command == "seek":
return self.fs_seek(*args)
if command == "clear":
return self.fs_clear(*args)
return "LiquidSoapPlayerClient does not understand fs." + command + str(args)
# ------------------------------------------------------------------------------------------ #
......@@ -96,10 +99,16 @@ class LiquidSoapPlayerClient(LiquidSoapClient):
return self.message
# ------------------------------------------------------------------------------------------ #
def fs_clear(self):
self.command('fs', 'clear')
return self.message
def fs_seek(self, uri):
self.command('fs', 'seek', uri)
return self.message
# ------------------------------------------------------------------------------------------ #
def set_http_url(self, uri):
self.command('http', 'url', uri)
......
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