a2c1ec0de3
Signed-off-by: Thomas Büttner <thomas@tartaros.tech>
13 lines
399 B
Bash
Executable File
13 lines
399 B
Bash
Executable File
#!/bin/sh
|
|
db=${1:-/var/lib/jellyfin/data/library.db}
|
|
embypath=${2:-/var/lib/emby-server}
|
|
jellyfinpath=${3:-/var/lib/jellyfin}
|
|
sqlite3 ${db} << SQL
|
|
UPDATE Chapters2
|
|
SET ImagePath=REPLACE(ImagePath, '${embypath}', '${jellyfinpath}');
|
|
UPDATE TypedBaseItems
|
|
SET Path=REPLACE(Path, '${embypath}', '${jellyfinpath}');
|
|
UPDATE TypedBaseItems
|
|
SET data=REPLACE(data, '${embypath}', '${jellyfinpath}');
|
|
SQL
|