xbmcbackup/default.py

12 lines
369 B
Python
Raw Normal View History

2012-11-28 15:54:23 +01:00
import xbmcgui
import resources.lib.utils as utils
from resources.lib.backup import XbmcBackup
2012-11-28 15:54:23 +01:00
#figure out if this is a backup or a restore
2012-11-28 16:47:40 +01:00
mode = xbmcgui.Dialog().select(utils.getString(30010) + " - " + utils.getString(30023),[utils.getString(30016),utils.getString(30017)])
2012-11-28 15:54:23 +01:00
if(mode != -1):
#run the profile backup
backup = XbmcBackup()
backup.run(mode)