You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
397 B
13 lines
397 B
#!/bin/sh
|
|
embypath=${2:-/var/lib/emby-server}
|
|
jellyfinpath=${3:-/var/lib/jellyfin}
|
|
db=${1:-${jellyfinpath}/data/library.db}
|
|
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
|