Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def CATEGORIES():
- dialog = xbmcgui.Dialog()
- choice = dialog.select('Choose Skin', ['Eminence HE 2 For Kids','Eminence HE 2 +18'],0)
- skin='NNN'
- if choice == 0:
- skin='Eminence HE 2 Kids'
- ShowBk(skin)
- elif choice == 1:
- skin='Eminence HE 2 +18'
- ShowBk(skin)
- def OPEN_URL(url):
- req = urllib2.Request(url)
- req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
- response = urllib2.urlopen(req)
- link=response.read()
- response.close()
- return link
- def wizard(name,url,description):
- path = xbmc.translatePath(os.path.join('special://home/addons','packages'))
- dp = xbmcgui.DialogProgress()
- dp.create("Abeksis Wizard","Downloading ",'', 'Please Wait')
- lib=os.path.join(path, name+'.zip')
- try:
- os.remove(lib)
- except:
- pass
- downloader.download(url, lib, dp)
- addonfolder = xbmc.translatePath(os.path.join('special://','home'))
- time.sleep(2)
- dp.update(0,"", "Extracting Zip Please Wait")
- print '======================================='
- print addonfolder
- print '======================================='
- extract.all(lib,addonfolder,dp)
- dialog = xbmcgui.Dialog()
- dialog.ok("DOWNLOAD COMPLETE", 'Unfortunately the only way to get the new changes to stick is', 'to force close kodi. Click ok to force Kodi to close,', 'DO NOT use the quit/exit options in Kodi., If the Force close does not close for some reason please Restart Device or kill task manaully')
- killxbmc()
Add Comment
Please, Sign In to add comment