mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +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"))
|
||||
|
||||
# Database files
|
||||
xbmcvfs.mkdir(os.path.join(backup, "Database"))
|
||||
database = os.path.join(backup, "Database")
|
||||
xbmcvfs.mkdir(database)
|
||||
|
||||
shutil.copy(src=utils.getKodiVideoDBPath(),
|
||||
dst=os.path.join(backup, "Database"))
|
||||
dst=database)
|
||||
|
||||
if settings('enableMusic') == "true":
|
||||
shutil.copy(src=utils.getKodiMusicDBPath(),
|
||||
dst=os.path.join(backup, "Database"))
|
||||
dst=database)
|
||||
|
||||
dialog(type_="ok",
|
||||
heading="{emby}",
|
||||
|
|
Loading…
Reference in a new issue