mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Simplify backup code
This commit is contained in:
parent
4c0ef2fe7a
commit
550c7a7092
1 changed files with 4 additions and 3 deletions
|
@ -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}",
|
||||||
|
|
Loading…
Reference in a new issue