From ca3f59e4156de16bc5e4e09e9b05174d6e5fd3ca Mon Sep 17 00:00:00 2001 From: glax Date: Mon, 6 Oct 2025 15:58:34 +0200 Subject: [PATCH] Do not check chapters associated with Mangas that do not have a Library assigned --- API/Schema/MangaContext/Chapter.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/API/Schema/MangaContext/Chapter.cs b/API/Schema/MangaContext/Chapter.cs index 98c201c..729d93b 100644 --- a/API/Schema/MangaContext/Chapter.cs +++ b/API/Schema/MangaContext/Chapter.cs @@ -85,6 +85,9 @@ public class Chapter : Identifiable, IComparable .ThenInclude(p => p.Library) .FirstOrDefaultAsync(c => c.Key == this.Key, token??CancellationToken.None) is not { } chapter) throw new KeyNotFoundException("Unable to find chapter"); + + if (chapter.ParentManga.Library is null) + return false; //TODO Log here this.Downloaded = File.Exists(chapter.FullArchiveFilePath);