mirror of
https://github.com/C9Glax/tranga.git
synced 2025-01-12 03:17:33 +01:00
Merge branch 'refs/heads/cuttingedge-merge-ServerV2' into cuttingedge
# Conflicts: # Tranga/Jobs/UpdateMetadata.cs
This commit is contained in:
commit
ec9290f41f
@ -36,8 +36,16 @@ public class UpdateMetadata : Job
|
||||
this.manga = manga.WithMetadata(updatedManga);
|
||||
this.manga.SaveSeriesInfoJson(settings.downloadLocation, true);
|
||||
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);
|
||||
}
|
||||
this.progressToken.Complete();
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user