From 1660560a6fcb2b4601be6fe295f97630b354d699 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 9 Jan 2022 18:26:31 +0100 Subject: [PATCH] Create 99-database_clean.sh --- jellyfin/rootfs/etc/cont-init.d/99-database_clean.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 jellyfin/rootfs/etc/cont-init.d/99-database_clean.sh diff --git a/jellyfin/rootfs/etc/cont-init.d/99-database_clean.sh b/jellyfin/rootfs/etc/cont-init.d/99-database_clean.sh new file mode 100644 index 000000000..5a6f33283 --- /dev/null +++ b/jellyfin/rootfs/etc/cont-init.d/99-database_clean.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +#Set variable +db=/config/addons_config/jellyfin/library.db + +#Modify base +sqlite3 -quote ${db} "UPDATE TypedBaseItems SET data = replace( data, '/config/jellyfin/', 'config/addons_config/jellyfin/' ), path = replace( path, '/config/jellyfin/', '/config/addons_config/jellyfin/' ) WHERE type='MediaBrowser.Controller.Entities.CollectionFolder';"