Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Removed a piece of code that was needed for upgrading, since all beta users agreed to wipe db.

Joseph Milazzo876466d05b0c
diff --git a/API/Services/Tasks/ScannerService.cs b/API/Services/Tasks/ScannerService.cs
index d51f1207a..96e9620f1 100644
--- a/API/Services/Tasks/ScannerService.cs
+++ b/API/Services/Tasks/ScannerService.cs
@@ -261,18 +261,6 @@ namespace API.Services.Tasks
var chapter = info.IsSpecial ? volume.Chapters.SingleOrDefault(c => c.Range == info.Filename || (c.Files.Select(f => f.FilePath).Contains(info.FullFilePath)))
: volume.Chapters.SingleOrDefault(c => c.Range == info.Chapters);
- if (info.IsSpecial && chapter != null && chapter.Files.Count > 1)
- {
- var fileToKeep = chapter.Files.SingleOrDefault(f => f.FilePath == info.FullFilePath);
- if (fileToKeep != null)
- {
- chapter.Files = new List<MangaFile>()
- {
- fileToKeep
- };
- }
- }
-
if (chapter == null)
{