mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-03 06:29:42 +00:00
Prepare for migration
This commit is contained in:
parent
dedfdba39b
commit
d442b46d7e
11 changed files with 451 additions and 0 deletions
12
scripts/dump_settings.sh
Executable file
12
scripts/dump_settings.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
# Dump settings - extract path-related values from JSON
|
||||
|
||||
DB_PATH="/mnt/docker/work/books/audiobookshelf/config/absdatabase.sqlite"
|
||||
|
||||
echo "=== settings (Path-related JSON values) ==="
|
||||
|
||||
# Extract and display server-settings JSON with key paths highlighted
|
||||
sqlite3 "$DB_PATH" "SELECT key, value FROM settings;" | while read -r key value; do
|
||||
echo "--- $key ---"
|
||||
echo "$value" | python3 -c "import sys, json; d=json.load(sys.stdin); [print(f' {k}: {v}') for k,v in d.items() if 'path' in k.lower() or 'url' in k.lower() or 'address' in k.lower()]" 2>/dev/null || echo " (No path-related keys found or JSON parse error)"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue