Fix duplicate job check.

We were still adding duplicate jobs if not *every* field in the Manga matched.
We now only compare publicationId.
This commit is contained in:
Glax 2024-12-12 22:18:06 +01:00
parent 747df0bde5
commit 025d43b752
2 changed files with 2 additions and 2 deletions

View File

@ -54,6 +54,6 @@ public class DownloadNewChapters : Job
if (obj is not DownloadNewChapters otherJob)
return false;
return otherJob.mangaConnector == this.mangaConnector &&
otherJob.manga.Equals(this.manga);
otherJob.manga.publicationId == this.manga.publicationId;
}
}

View File

@ -71,6 +71,6 @@ public class UpdateMetadata : Job
if (obj is not UpdateMetadata otherJob)
return false;
return otherJob.mangaConnector == this.mangaConnector &&
otherJob.manga.Equals(this.manga);
otherJob.manga.publicationId == this.manga.publicationId;
}
}