From 22c4c0eb2c92b4a71e8e4e3acd0fb459a3fa9e31 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 2 Sep 2023 16:15:06 +0200 Subject: [PATCH] Fixed GetJobsLike, for empty publication, but existing chapter --- Tranga/Jobs/JobBoss.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tranga/Jobs/JobBoss.cs b/Tranga/Jobs/JobBoss.cs index 42206f3..7248b45 100644 --- a/Tranga/Jobs/JobBoss.cs +++ b/Tranga/Jobs/JobBoss.cs @@ -101,7 +101,10 @@ public class JobBoss : GlobalBase public IEnumerable GetJobsLike(MangaConnector? mangaConnector = null, Manga? publication = null, Chapter? chapter = null) { - return GetJobsLike(mangaConnector?.name, publication?.internalId, chapter?.chapterNumber); + if (chapter is not null) + return GetJobsLike(mangaConnector?.name, chapter.Value.parentManga.internalId, chapter?.chapterNumber); + else + return GetJobsLike(mangaConnector?.name, publication?.internalId); } public Job? GetJobById(string jobId)