Chapter volume and chapternumber as float instead of string.

Possible fix #293
This commit is contained in:
2024-12-12 22:33:13 +01:00
parent 025d43b752
commit 1e6a65c0fd
13 changed files with 113 additions and 114 deletions

View File

@ -70,7 +70,7 @@ public class JobBoss : GlobalBase
RemoveJob(job);
}
public IEnumerable<Job> GetJobsLike(string? connectorName = null, string? internalId = null, string? chapterNumber = null)
public IEnumerable<Job> GetJobsLike(string? connectorName = null, string? internalId = null, float? chapterNumber = null)
{
IEnumerable<Job> ret = this.jobs;
if (connectorName is not null)
@ -82,7 +82,7 @@ public class JobBoss : GlobalBase
if (jjob is not DownloadChapter job)
return false;
return job.chapter.parentManga.internalId == internalId &&
job.chapter.chapterNumber == chapterNumber;
job.chapter.chapterNumber.Equals(chapterNumber);
});
else if (internalId is not null)
ret = ret.Where(jjob =>