(2015-05-18, 16:19)ed_davidson Wrote: Hi Rob,
I did think that in the past I was able to preconfigure the addon by writing the settings file in the userdata folder and have it stick but not since your update. Maybe I am mistaken.
Regarding the wiping of files my question is this. For example: if I have a folder in the addon_data folder called plugin.video.genesis and inside that folder is a file called settings.xml and another one called favourites.db. Would it be possible to restore the settings.xml file with new info and leave the favourites.db file as it was? Or would everything in the plugin.video.genesis folder get replaced with whatever is in the new restore? Or, if I removed the favourites.db file from the restore,would the favourites file be left untouched by the new restore or would the new plugin.video.genesis folder be missing the favourites.db file.
Hope this makes sense.
There is no reason you can't write to the settings.xml file yourself. The code does specify though that if you have set a browsed path, it will delete the typed path. Again, I have no idea why at the moment as it has been that way for so long. I'm going to review what necessitated this. It could no longer be an issue.
Everything in the restore gets written back to the destination. So if favourties.db exists in the restore, your local copy is going to be erased. You are correct that deleting it from the archive first will make sure it leaves the local copy alone. The idea is that if you did a fresh Kodi install and wanted your settings back, it would copy everything so that default files would go back to your previous settings. If you need to selectively restore something it doesn't work that way. Although, a selective restore function would be kind of cool - that might be a feature request for another time.
(2015-05-18, 19:18)ed_davidson Wrote: Hi Rob,
I had the following box come up when trying to do a restore from a compressed backup. A picture of the screenshot is attached.
Weird thing is if when this box comes up I then do a backup and try the restore again it works fine.
There is nothing in the log but I have posted it anyway.
Cheers
Log: http://xbmclogs.com/pzzzjzf5e
Thanks for the log, I will take a look. When you do the backup first, then restore. Are you sure it's using your restore point and not just using the temp zip file from the backup instead? The reason I ask is that if the zip file isn't transferred from your backup location, for whatever reason, you get that error. Basically it can't do the restore since the file doesn't exist. If the zip file was never cleaned up from your backup (again, this happens as your filesystem may deny Kodi the chance to delete it) it may just use that file instead.
I'll review the log and run some tests on my end.