Skip to content
Snippets Groups Projects
Commit c22ea569 authored by David Trattnig's avatar David Trattnig
Browse files

Added clear fs queue to Liquidsoap API.

parent 4e7591c1
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment