Files
ReadMeABook/prisma/migrations/20251222140111_add_asin_isbn_to_library/migration.sql
T
kikootwo 1cefa437b7 Add ASIN/ISBN fields to library and improve matching
Introduces `asin` and `isbn` fields to the PlexLibrary schema and database, with migration and indexing for fast lookups. Updates scan and recently-added processors to persist ASIN/ISBN from both Plex and Audiobookshelf backends. Enhances matching logic to prioritize exact ASIN matches using the new fields, improving match accuracy for Audiobookshelf users. Also includes minor improvements: fixes cover art handling for cached thumbnails, adds download URL validation in Prowlarr and qBittorrent integrations, and updates documentation to reflect these changes.
2026-01-28 11:41:57 -05:00

10 lines
249 B
SQL

-- AlterTable
ALTER TABLE "plex_library" ADD COLUMN "asin" TEXT,
ADD COLUMN "isbn" TEXT;
-- CreateIndex
CREATE INDEX "plex_library_asin_idx" ON "plex_library"("asin");
-- CreateIndex
CREATE INDEX "plex_library_isbn_idx" ON "plex_library"("isbn");