From 8175ddf517c11eb94d526694f230c4551ab7edd6 Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Sat, 5 Jun 2021 16:30:50 -0500 Subject: [PATCH] Fixed a critical crash in Scan library where Series Metadata was getting regenerated and unique constraint failed. (#269) --- API/Services/Tasks/ScannerService.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/API/Services/Tasks/ScannerService.cs b/API/Services/Tasks/ScannerService.cs index e22803c4b3..12f30afada 100644 --- a/API/Services/Tasks/ScannerService.cs +++ b/API/Services/Tasks/ScannerService.cs @@ -228,7 +228,6 @@ private void UpdateLibrary(Library library, Dictionary> existingSeries.NormalizedName = Parser.Parser.Normalize(existingSeries.Name); existingSeries.OriginalName ??= infos[0].Series; - existingSeries.Metadata ??= DbFactory.SeriesMetadata(new List()); } // Now, we only have to deal with series that exist on disk. Let's recalculate the volumes for each series