mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +01:00
14 lines
367 B
Python
14 lines
367 B
Python
import xbmcgui
|
|
import resources.lib.utils as utils
|
|
from resources.lib.backup import XbmcBackup
|
|
|
|
#figure out if this is a backup or a restore
|
|
mode = xbmcgui.Dialog().select(utils.getString(30023),[utils.getString(30016),utils.getString(30017)])
|
|
|
|
if(mode != -1):
|
|
#run the profile backup
|
|
backup = XbmcBackup()
|
|
|
|
if(backup.isReady()):
|
|
backup.run(mode)
|