Commit dee5bca1 authored by Oliver Wagner's avatar Oliver Wagner
Browse files

V0.5 - 2015-07-25 - owagner

  - fixed script error occuring when playback details where not immediate
    available when starting playback
parent 1550393e
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="service.mqtt" name="MQTT Adapter" version="0.4" provider-name="owagner">
<addon id="service.mqtt" name="MQTT Adapter" version="0.5" provider-name="owagner">
<requires>
<import addon="xbmc.python" version="2.19.0"/>
</requires>
......
V0.5 - 2015-07-25 - owagner
- fixed script error occuring when playback details where not immediate
available when starting playback
V0.4 - 2015-06-16 - owagner
- Settings: MQTT broker address is now a text field and thus allows entering of hostnames
- will now check whether the title information changes during progress
......
......@@ -80,12 +80,13 @@ def publishdetails():
if not player.isPlaying():
return
res=sendrpc("Player.GetItem",{"playerid":activeplayerid,"properties":["title","streamdetails","file"]})
newtitle=res["result"]["item"]["title"]
newdetail={"kodi_details":res["result"]["item"]}
if newtitle!=lasttitle or newdetail!=lastdetail:
lasttitle=newtitle
lastdetail=newdetail
publish("title",newtitle,newdetail)
if "result" in res:
newtitle=res["result"]["item"]["title"]
newdetail={"kodi_details":res["result"]["item"]}
if newtitle!=lasttitle or newdetail!=lastdetail:
lasttitle=newtitle
lastdetail=newdetail
publish("title",newtitle,newdetail)
publishprogress()
#
......
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