Skip to content
Snippets Groups Projects
Commit 26ab4317 authored by Patrick Pimentel Jr.'s avatar Patrick Pimentel Jr.
Browse files

Merge pull request #1 from owagner/master

merge upstream into fork
parents 1e325761 726a6586
Branches
Tags
No related merge requests found
......@@ -53,7 +53,8 @@ The addon publishes on the following topics (prefixed with the configured topic
* status/title: a JSON-encoded object with the fields
- "val": the title of the current playback item
- "kodi_details": an object with further details about the current playback items. This is effectivly the result
of a JSON-RPC call Player.GetItem with the properties "title", "streamdetails" and "file"
of a JSON-RPC call Player.GetItem with the properties "title", "streamdetails", "file", "thumbnail"
and "fanart"
The addon listens to the following topics (prefixed with the configured topic prefix):
......
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="service.mqtt" name="MQTT Adapter" version="0.6" provider-name="owagner">
<addon id="service.mqtt" name="MQTT Adapter" version="0.7" provider-name="owagner">
<requires>
<import addon="xbmc.python" version="2.19.0"/>
</requires>
......
v0.7 - 2015-08-01 - existsec
- include "thumbnail" and "fanart" in title message
v0.6 - 2015-07-29 - owagner
- include "kodi_playerid" and "kodi_playertype" in playbackstate updates [#2]
......
......@@ -81,7 +81,7 @@ def publishdetails():
global lasttitle,lastdetail
if not player.isPlaying():
return
res=sendrpc("Player.GetItem",{"playerid":activeplayerid,"properties":["title","streamdetails","file"]})
res=sendrpc("Player.GetItem",{"playerid":activeplayerid,"properties":["title","streamdetails","file","thumbnail","fanart"]})
if "result" in res:
newtitle=res["result"]["item"]["title"]
newdetail={"kodi_details":res["result"]["item"]}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment