Skip to content
Snippets Groups Projects
Commit 67b7ccca authored by 42loop's avatar 42loop
Browse files

cleaned up filelist message, removed retain flags to prevent clutter

parent 9a040e08
Branches
No related tags found
No related merge requests found
......@@ -92,13 +92,13 @@ def publish(suffix,val,more):
jsonstr=json.dumps(robj)
fulltopic=topic+"status/"+suffix
mqttlogging("MQTT: Publishing @"+fulltopic+": "+jsonstr)
mqc.publish(fulltopic,jsonstr,qos=0,retain=True)
mqc.publish(fulltopic,jsonstr,qos=0,retain=False)
def publishstat(suffix,val,more):
global topic,mqc
fulltopic="stat/"+topic+suffix
mqttlogging("MQTT: Publishing @"+fulltopic+": "+val)
mqc.publish(fulltopic,val,qos=0,retain=True)
mqc.publish(fulltopic,val,qos=0,retain=False)
def publishmedialist(suffix,val,more):
......@@ -216,9 +216,6 @@ class MQTTPlayer(xbmc.Player):
def onPlayBackSeek(self):
publishprogress()
def onPlayBackSeek(self):
publishprogress()
def onPlayBackSeekChapter(self):
publishprogress()
......@@ -297,7 +294,9 @@ def processgetmedia():
res2=""
for entry in result:
mqttlogging(entry)
if entry!="/home/osmc/video/video.mov":
res2+=entry+","
res2=res2[:-1]
publishmedialist("files",res2,None)
def processgetcurrentmedia():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment