mirror of
https://github.com/robweber/xbmcbackup.git
synced 2026-04-02 16:47:59 +02:00
added ability to export/save settings as json using GetSettings
This commit is contained in:
@@ -160,6 +160,15 @@ class XbmcBackup:
|
||||
if(not shouldContinue):
|
||||
return
|
||||
|
||||
# check if Kodi settings should also be dumped
|
||||
if(utils.getSettingBool('backup_copy_settings')):
|
||||
utils.log('Backing up Kodi settings')
|
||||
gui_settings = GuiSettingsManager()
|
||||
gui_settings.backup()
|
||||
|
||||
# add this file to the backup
|
||||
self.remote_vfs.put(xbmcvfs.translatePath(utils.data_dir() + gui_settings.filename), self.remote_vfs.root_path + gui_settings.filename)
|
||||
|
||||
orig_base_path = self.remote_vfs.root_path
|
||||
|
||||
# backup all the files
|
||||
|
||||
Reference in New Issue
Block a user