Simplify backup code

This commit is contained in:
angelblue05 2016-09-18 02:58:46 -05:00
parent 4c0ef2fe7a
commit 550c7a7092

View file

@ -170,14 +170,15 @@ def emby_backup():
dst=os.path.join(backup, "addon_data", "plugin.video.emby")) dst=os.path.join(backup, "addon_data", "plugin.video.emby"))
# Database files # Database files
xbmcvfs.mkdir(os.path.join(backup, "Database")) database = os.path.join(backup, "Database")
xbmcvfs.mkdir(database)
shutil.copy(src=utils.getKodiVideoDBPath(), shutil.copy(src=utils.getKodiVideoDBPath(),
dst=os.path.join(backup, "Database")) dst=database)
if settings('enableMusic') == "true": if settings('enableMusic') == "true":
shutil.copy(src=utils.getKodiMusicDBPath(), shutil.copy(src=utils.getKodiMusicDBPath(),
dst=os.path.join(backup, "Database")) dst=database)
dialog(type_="ok", dialog(type_="ok",
heading="{emby}", heading="{emby}",