Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.66 KB | None | 0 0
  1. import xbmcaddon
  2. import xbmcgui
  3. import os
  4.  
  5. __addon__ = xbmcaddon.Addon()
  6. __addonname__ = __addon__.getAddonInfo('name')
  7.  
  8. line1 = "Sul tuo sistema è installato il plugin.video.streamondemand-pureita"
  9. line2 = "StreamOndemand non è compatibile con quel plugin"
  10. line3 = "Se vuoi utilizzare StreamOndemand disinstalla il plugin.video.streamondemand-pureita"
  11.  
  12. kickaddon = xbmcaddon.Addon('plugin.video.streamondemand-pureita')
  13.  
  14. def script_chk(kickaddon):
  15. return xbmc.getCondVisibility('System.HasAddon(%s)' % kickaddon) == 1
  16.  
  17. if kickaddon is 0:
  18.     print 'kickaddon is False'
  19. else:
  20.     xbmcgui.Dialog().ok(__addonname__, line1, line2, line3)
  21.     quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement