Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement