robweber / xbmcbackup

Backup Addon for Kodi
MIT License
112 stars 48 forks source link

Restore didnt work on Windows and Android #168

Closed strech345 closed 3 years ago

strech345 commented 4 years ago

Hi i want to test this plugin. I backup the config and after that change settings like language or skin. Then i restore it, but all the settings still the same. Same on Windows and Android (Fire TV). What im doing wrong? Backup files are locally and guisettings.xml exists. No error throw up Kodi -V: 18.7

this is the end of some logs

2020-06-19 22:52:16.326 T:10112   DEBUG: script.xbmcbackup-1.1.3: Writing file: -D:/tmp/202006192220/userdata/profiles
2020-06-19 22:52:16.339 T:10112   DEBUG: CAddonSettings[screensaver.xbmc.builtin.dim]: loading setting definitions
2020-06-19 22:52:16.339 T:10112   DEBUG: CAddonSettings[screensaver.xbmc.builtin.dim]: trying to load setting definitions from old format...
2020-06-19 22:52:16.346 T:10112   ERROR: XFILE::CDirectory::GetDirectory - Error getting C:\Users\xxxxx\AppData\Roaming\Kodi\media\Fonts\
2020-06-19 22:52:16.346 T:10112   ERROR: XFILE::CDirectory::GetDirectory - Error getting special://home/media/Fonts/
2020-06-19 22:52:16.565 T:15596    INFO: ADDON: cpluff: 'Could not read plug-in directory C:\Users\xxxxx\AppData\Roaming\Kodi\addons: No such file or directory'
2020-06-19 22:52:16.571 T:15596   DEBUG: ADDON: cpluff: 'Not all directories were successfully scanned.'
robweber commented 4 years ago

There are a lot of different variables but I think I can pin point the crux of the issue you're having. Settings like the language or skin preferences are stored in the guisettings.xml file in Kodi. This file is a bit odd in that all settings are dumped from the Kodi app to the file when the program exits. This means that if you overwrite the file with previous settings (like from a backup) while Kodi is running, it will just dump the run-time settings on close anyway. To get around this the Backup addon uses the JSON-RPC system to actually update the settings at run-time in Kodi when you do a restore.

You're using version 1.1.3 of this addon, which is being pulled from the Jarvis (16.x) addon repository. In Jarvis the layout of the guisettings.xml file is different than it is in later versions. There is a fix for this, detailed here. Because of how the Kodi addon repo works I can only submit updates to repositories for Jarvis and Krypton. All addons for Leia need to be Python 2 and 3 compatible so I've skipped Leia and gone directly to publishing updates for Matrix (19.x). The bottom line is that you're using a version of the addon that won't be able to write these settings for you, and I can't submit the correct version for the Krypton or Leia repositories to get the fix in there.

You can download a corrected version manually for Krypton. Sorry for the issues. Once Kodi 19 drops this problem will go away.

strech345 commented 4 years ago

@robweber thanks for your detailed description. Ok i may i will check the 19v. Maybe it would be good to also add that info of the v18 to your readme.

robweber commented 3 years ago

Added info to the forum page. I think the README file is explanatory as it already shows the current compatible version.