Update absId to id

This commit is contained in:
Cutch 2025-11-25 09:21:26 -05:00
parent d5cd4f7944
commit 94e13014ed
4 changed files with 6 additions and 6 deletions

View file

@ -717,10 +717,10 @@ async function findLibraryItemByItemToMetadata(fullPath, isSingleMedia) {
if (!metadataText) return null
const abMetadata = abmetadataGenerator.parseJson(metadataText) || {}
// check if metadata id exists in the database
const existingLibraryItem = await Database.libraryItemModel.getExpandedById(abMetadata.absId)
const existingLibraryItem = await Database.libraryItemModel.getExpandedById(abMetadata.id)
if (existingLibraryItem) {
Logger.debug(`[LibraryScanner] Found library item with metadata id matching one of "${abMetadata.absId}" at path "${existingLibraryItem.path}"`)
Logger.debug(`[LibraryScanner] Found library item with metadata id matching one of "${abMetadata.id}" at path "${existingLibraryItem.path}"`)
for (const { metadata } of existingLibraryItem.getLibraryFiles())
if (await fs.pathExists(metadata.path)) {