mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Backup emby database
Oops.
This commit is contained in:
parent
7ab7fdb397
commit
3630f52c07
1 changed files with 5 additions and 1 deletions
|
@ -174,9 +174,13 @@ def emby_backup():
|
||||||
database = os.path.join(backup, "Database")
|
database = os.path.join(backup, "Database")
|
||||||
xbmcvfs.mkdir(database)
|
xbmcvfs.mkdir(database)
|
||||||
|
|
||||||
|
# Emby database
|
||||||
|
shutil.copy(src=xbmc.translatePath("special://database/emby.db").decode('utf-8'),
|
||||||
|
dst=database)
|
||||||
|
# Videos database
|
||||||
shutil.copy(src=utils.getKodiVideoDBPath(),
|
shutil.copy(src=utils.getKodiVideoDBPath(),
|
||||||
dst=database)
|
dst=database)
|
||||||
|
# Music database
|
||||||
if settings('enableMusic') == "true":
|
if settings('enableMusic') == "true":
|
||||||
shutil.copy(src=utils.getKodiMusicDBPath(),
|
shutil.copy(src=utils.getKodiMusicDBPath(),
|
||||||
dst=database)
|
dst=database)
|
||||||
|
|
Loading…
Reference in a new issue