From f892453892ff1149c03ce81cec9a773aac588d5c Mon Sep 17 00:00:00 2001 From: mikiher Date: Mon, 9 Sep 2024 18:36:12 +0300 Subject: [PATCH] Fix crash when quick match adds new series --- server/scanner/Scanner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/scanner/Scanner.js b/server/scanner/Scanner.js index 69230dae..06657de2 100644 --- a/server/scanner/Scanner.js +++ b/server/scanner/Scanner.js @@ -1,6 +1,7 @@ const Logger = require('../Logger') const SocketAuthority = require('../SocketAuthority') const Database = require('../Database') +const { getTitleIgnorePrefix } = require('../utils/index') // Utils const { findMatchingEpisodesInFeed, getPodcastFeed } = require('../utils/podcastUtils') @@ -230,7 +231,7 @@ class Scanner { seriesItem = await Database.seriesModel.create({ name: seriesMatchItem.series, nameIgnorePrefix: getTitleIgnorePrefix(seriesMatchItem.series), - libraryId + libraryId: libraryItem.libraryId }) // Update filter data Database.addSeriesToFilterData(libraryItem.libraryId, seriesItem.name, seriesItem.id)