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);