Update manga in DownloadNewChapters Jobs
This commit is contained in:
parent
9f9ea569d5
commit
6b91796e5a
@ -36,8 +36,16 @@ public class UpdateMetadata : Job
|
|||||||
this.manga = manga.WithMetadata(updatedManga);
|
this.manga = manga.WithMetadata(updatedManga);
|
||||||
this.manga.SaveSeriesInfoJson(settings.downloadLocation, true);
|
this.manga.SaveSeriesInfoJson(settings.downloadLocation, true);
|
||||||
this.mangaConnector.CopyCoverFromCacheToDownloadLocation(manga);
|
this.mangaConnector.CopyCoverFromCacheToDownloadLocation(manga);
|
||||||
foreach (Job job in jobBoss.GetJobsLike(publication: manga))
|
foreach (Job job in jobBoss.GetJobsLike(publication: this.manga))
|
||||||
|
{
|
||||||
|
if (job is DownloadNewChapters dc)
|
||||||
|
dc.manga = this.manga;
|
||||||
|
else if (job is UpdateMetadata um)
|
||||||
|
um.manga = this.manga;
|
||||||
|
else
|
||||||
|
continue;
|
||||||
jobBoss.UpdateJobFile(job);
|
jobBoss.UpdateJobFile(job);
|
||||||
|
}
|
||||||
this.progressToken.Complete();
|
this.progressToken.Complete();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user