2023-02-20, 14:19
Hi,
I've got an addon thats stopped working. Its a simple addon to start music party mode and I cant work out what is wrong - no errors are thrown and the kodi.log shows the addon as running successfully.
I can start music party mode manually via the kodi gui and as far as I can tell, everything in the addon code is up to date. Its not working with kodi 19 and 20 on windows. None of the builtin functions work, not even stopping current playback, though I can see the addon is reading settings through some print statements I tested with.
default.py is below, and the whole addon is on giuthub
kodi.log
Can anyone tell me why its not running? I'm stumped...
I've got an addon thats stopped working. Its a simple addon to start music party mode and I cant work out what is wrong - no errors are thrown and the kodi.log shows the addon as running successfully.
I can start music party mode manually via the kodi gui and as far as I can tell, everything in the addon code is up to date. Its not working with kodi 19 and 20 on windows. None of the builtin functions work, not even stopping current playback, though I can see the addon is reading settings through some print statements I tested with.
default.py is below, and the whole addon is on giuthub
python:import xbmc
import xbmcgui
import xbmcaddon
import time
addon = xbmcaddon.Addon(id='script.audio.party.mode.start')
visTimeout = int(addon.getSetting("visTimeout"))
visInfoHide = addon.getSetting("visInfoHide")
visInfoTimeout = int(addon.getSetting("visInfoTimeout"))
def startPartyMode():
xbmc.executebuiltin("XBMC.PlayerControl(Stop)")
xbmc.executebuiltin("XBMC.PlayerControl(PartyMode)")
time.sleep(visTimeout)
xbmc.executebuiltin("XBMC.Action(Fullscreen)")
if visInfoHide == 'true':
time.sleep(visInfoTimeout)
xbmc.executebuiltin("XBMC.Action(Info)")
startPartyMode()
kodi.log
Can anyone tell me why its not running? I'm stumped...