Add MangaConnector.GetMangaFromId

This commit is contained in:
2023-11-02 15:47:16 +01:00
parent 083ce238d8
commit 449d406eab
9 changed files with 44 additions and 12 deletions

View File

@ -23,12 +23,7 @@ public class UpdateMetadata : Job
protected override IEnumerable<Job> ExecuteReturnSubTasksInternal(JobBoss jobBoss)
{
if(manga.websiteUrl is null)
{
Log($"Legacy manga {manga}");
return Array.Empty<Job>();
}
Manga? possibleUpdatedManga = mangaConnector.GetMangaFromUrl(manga.websiteUrl);
Manga? possibleUpdatedManga = mangaConnector.GetMangaFromId(manga.publicationId);
if (possibleUpdatedManga is { } updatedManga)
{
cachedPublications.Remove(this.manga);