mirror of
https://github.com/C9Glax/tranga.git
synced 2025-01-12 03:17:33 +01:00
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:
parent
747df0bde5
commit
025d43b752
@ -54,6 +54,6 @@ public class DownloadNewChapters : Job
|
|||||||
if (obj is not DownloadNewChapters otherJob)
|
if (obj is not DownloadNewChapters otherJob)
|
||||||
return false;
|
return false;
|
||||||
return otherJob.mangaConnector == this.mangaConnector &&
|
return otherJob.mangaConnector == this.mangaConnector &&
|
||||||
otherJob.manga.Equals(this.manga);
|
otherJob.manga.publicationId == this.manga.publicationId;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -71,6 +71,6 @@ public class UpdateMetadata : Job
|
|||||||
if (obj is not UpdateMetadata otherJob)
|
if (obj is not UpdateMetadata otherJob)
|
||||||
return false;
|
return false;
|
||||||
return otherJob.mangaConnector == this.mangaConnector &&
|
return otherJob.mangaConnector == this.mangaConnector &&
|
||||||
otherJob.manga.Equals(this.manga);
|
otherJob.manga.publicationId == this.manga.publicationId;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user