2011-08-14, 20:48
The last two days i've been working on making the AIRPLAY/SHAIRPORT add-on made by ultraman work on the RC5 release of OPENELEC (Dharma 10.1 release). I've got it working by starting the python script by hand but like to have it work so that XBMC will autostart it on startup/login as supposed for a service add-on.
But I haven't got a clue anymore where to look, have had a look at the
/var/log/messages file and xbmc/temp/xbmc.log but nothing strange in here.
The add-on has been installed but isn't running.
For reference, this is the addon.xml:
This the contents of the default.py
Is there a way to debug an ADDON to see what's going wrong during execution?
If you need more info just let me know.
For completeness here are my pastebins for
dmesg pastebin.com/UVBPsZwX
lsmod pastebin.com/1ytEhhMX
full xbmc.log pastebin.com/k1mEHk6z
But I haven't got a clue anymore where to look, have had a look at the
/var/log/messages file and xbmc/temp/xbmc.log but nothing strange in here.
Code:
20:35:48 T:139837869422720 M:1471664128 DEBUG: ADDON: cpluff: 'Plug-in service.multimedia.shair-player has been installed.'
The add-on has been installed but isn't running.
For reference, this is the addon.xml:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="service.multimedia.shair-player"
name="shair-player"
version="0.99.5"
provider-name="openelec.tv">
<requires>
<import addon="os.openelec.tv" version="0.99"/>
<import addon="xbmc.python" version="1.0"/>
</requires>
<extension point="xbmc.service"
library="default.py" start="startup">
<provides>executable</provides>
</extension>
<extension point="xbmc.addon.metadata">
<summary>ShairPort and Airplayer</summary>
<description>
Airplayer is a script to make media playing software Airplay-compatible. Airplayer features pluggable backends, making it possible to support different media players.
shairport emulates an AirPort Express for the purpose of streaming music from iTunes and compatible iPods. It implements a server for the Apple RAOP protocol. ShairPort does not support AirPlay v2 (video and photo streaming).
</description>
<platform>all</platform>
</extension>
</addon>
This the contents of the default.py
Code:
import xbmc, time, os, subprocess
os.system("shair-player.service")
Is there a way to debug an ADDON to see what's going wrong during execution?
If you need more info just let me know.
For completeness here are my pastebins for
dmesg pastebin.com/UVBPsZwX
lsmod pastebin.com/1ytEhhMX
full xbmc.log pastebin.com/k1mEHk6z