audiobookshelf/scripts/dump_library_items.sh

11 lines
372 B
Bash
Raw Normal View History

2026-02-05 16:42:47 +02:00
#!/bin/bash
# Dump libraryItems table focusing on paths
DB_PATH="/mnt/docker/work/books/audiobookshelf/config/absdatabase.sqlite"
sqlite3 -header -column "$DB_PATH" "SELECT id, path, relPath FROM libraryItems LIMIT 100;"
echo ""
2026-02-05 17:04:21 +02:00
echo "Unique path prefixes:"
2026-02-05 16:42:47 +02:00
sqlite3 "$DB_PATH" "SELECT DISTINCT SUBSTR(path, 1, INSTR(path || '/', '/') - 1) FROM libraryItems;" | sort -u