Advertisement
Guest User

XBMC Partymode Autostart

a guest
Sep 3rd, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. '''
  2. Created on May 06, 2012
  3.  
  4. @author: mindrunner
  5. '''
  6.  
  7. import xbmc
  8. import xbmcgui
  9. import xbmcaddon
  10. from time import sleep
  11.  
  12. if __name__ == '__main__':
  13.    
  14.     addon_id = "service.partymode.autostart"
  15.     Addon = xbmcaddon.Addon(addon_id)
  16.     __is_enabled__ = Addon.getSetting('enable')
  17.    
  18.     if __is_enabled__:
  19.         xbmc.executebuiltin("XBMC.PlayerControl(PartyMode)")
  20.         sleep(20)
  21.         xbmc.executebuiltin("XBMC.ActivateWindow(visualisation)")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement