2015-05-26, 20:29
Hello,
So I tried to re-make the backup add-on for learning purposes.
But for some reason it extract my backup, puts the add-ons in place but does not replace the guisettings.xml
It does put back the add-on data.
I created a media folder for my background in /home/ and it does place it there after I wiped Kodi and used my backup but for some reason I do not get my guisettings.xml placed in userdata.
Can someone help me?
So I tried to re-make the backup add-on for learning purposes.
But for some reason it extract my backup, puts the add-ons in place but does not replace the guisettings.xml
It does put back the add-on data.
I created a media folder for my background in /home/ and it does place it there after I wiped Kodi and used my backup but for some reason I do not get my guisettings.xml placed in userdata.
Code:
def wizard(name,url,description):
path = xbmc.translatePath(os.path.join('special://home/addons','packages'))
dp = xbmcgui.DialogProgress()
dp.create("SmartTV Box","Opening backup ",'', 'Have some patience')
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 and putting back")
print '======================================='
print addonfolder
print '======================================='
extract.all(lib,addonfolder,dp)
dialog = xbmcgui.Dialog()
dialog.ok("Backup:", "Restoring is done!","Please restart Kodi","Have a nice day!")
Can someone help me?