Advertisement
abeksis

sdffsf

Jan 31st, 2016
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. def wizard(name,url,description):
  2. path = xbmc.translatePath(os.path.join('special://home/addons','packages'))
  3. dp = xbmcgui.DialogProgress()
  4. dp.create("Abeksis Wizard","Downloading אנא המתן ",'', 'Please Wait')
  5. lib=os.path.join(path, name+'.zip')
  6. try:
  7. os.remove(lib)
  8. except:
  9. pass
  10. downloader.download(url, lib, dp)
  11. addonfolder = xbmc.translatePath(os.path.join('special://','home'))
  12. time.sleep(2)
  13. dp.update(0,"", "Extracting Zip Please Wait")
  14. print '======================================='
  15. print addonfolder
  16. print '======================================='
  17. extract.all(lib,addonfolder,dp)
  18. dialog = xbmcgui.Dialog()
  19. 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')
  20. killxbmc()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement