MPC now reports a list instead

of string for listall
rr/dockerize
Will Hunt 2016-03-21 12:05:19 +00:00
parent fb0c0911b2
commit b650ca5cf4
1 changed files with 2 additions and 3 deletions

View File

@ -36,7 +36,6 @@ class MPCClient:
msg = cmd+" "+" ".join(args)+"\n"
s.send(msg.encode())
data = s.recv(BUFFER)
print(data.decode())
s.close()
return True
@ -78,9 +77,9 @@ class MPCClient:
def listall(self,playlist=None):
if playlist != None:
return self.__runcmd("listall",True,[playlist])
return self.__runcmd("listall",True,[playlist]).split("\n")
else:
return self.__runcmd("listall",True)
return self.__runcmd("listall",True).split("\n")
def load(self,playlist):
return self.__runcmd("load",False,[playlist])