mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-11 13:19:48 +02:00
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
Some checks failed
Docker Image CI / build (push) Has been cancelled
This commit is contained in:
@@ -85,6 +85,9 @@ public class Chapter : Identifiable, IComparable<Chapter>
|
||||
.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);
|
||||
|
Reference in New Issue
Block a user