Fixes #97 missing jobs.

Implemented Equals(obj) functions for Chapter, DownloadChapter and DownloadNewChapters to check if jobs already exist.
This commit is contained in:
2024-01-11 20:19:04 +01:00
parent 0c135aa89e
commit b5be4e0dd8
5 changed files with 33 additions and 9 deletions

View File

@ -41,6 +41,13 @@ public readonly struct Chapter : IComparable
return $"Chapter {parentManga.sortName} {parentManga.internalId} {chapterNumber} {name}";
}
public override bool Equals(object? obj)
{
if (obj is not Chapter)
return false;
return CompareTo(obj) == 0;
}
public int CompareTo(object? obj)
{
if (obj is Chapter otherChapter)