mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-11 05:09:49 +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:
@@ -86,6 +86,9 @@ public class Chapter : Identifiable, IComparable<Chapter>
|
|||||||
.FirstOrDefaultAsync(c => c.Key == this.Key, token??CancellationToken.None) is not { } chapter)
|
.FirstOrDefaultAsync(c => c.Key == this.Key, token??CancellationToken.None) is not { } chapter)
|
||||||
throw new KeyNotFoundException("Unable to find chapter");
|
throw new KeyNotFoundException("Unable to find chapter");
|
||||||
|
|
||||||
|
if (chapter.ParentManga.Library is null)
|
||||||
|
return false;
|
||||||
|
|
||||||
//TODO Log here
|
//TODO Log here
|
||||||
this.Downloaded = File.Exists(chapter.FullArchiveFilePath);
|
this.Downloaded = File.Exists(chapter.FullArchiveFilePath);
|
||||||
await context.Sync(token??CancellationToken.None, GetType(), $"CheckDownloaded {this} {this.Downloaded}");
|
await context.Sync(token??CancellationToken.None, GetType(), $"CheckDownloaded {this} {this.Downloaded}");
|
||||||
|
Reference in New Issue
Block a user