Do not check chapters associated with Mangas that do not have a Library assigned
Some checks failed
Docker Image CI / build (push) Has been cancelled

This commit is contained in:
2025-10-06 15:58:34 +02:00
parent 8e4afb43f8
commit ca3f59e415

View File

@@ -86,6 +86,9 @@ public class Chapter : Identifiable, IComparable<Chapter>
.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);
await context.Sync(token??CancellationToken.None, GetType(), $"CheckDownloaded {this} {this.Downloaded}");