Fix rebase

This commit is contained in:
2025-09-01 20:16:35 +02:00
parent 7e70288662
commit 5883ed6426
2 changed files with 8 additions and 15 deletions

View File

@@ -17,7 +17,7 @@ public class MetadataEntry
public MetadataEntry(MetadataFetcher fetcher, Manga manga, string identifier)
{
this.Manga = manga;
this.MangaId = manga.MangaId;
this.MangaId = manga.Key;
this.MetadataFetcher = fetcher;
this.MetadataFetcherName = fetcher.Name;
this.Identifier = identifier;

View File

@@ -64,21 +64,14 @@ public class MyAnimeList : MetadataFetcher
throw new FormatException("ID was not in correct format");
}
try
{
dbManga.Name = resultData.Titles.First().Title;
dbManga.Description = resultData.Synopsis;
dbManga.AltTitles.Clear();
dbManga.AltTitles = resultData.Titles.Select(t => new MangaAltTitle(t.Type, t.Title)).ToList();
dbManga.AltTitles = resultData.Titles.Select(t => new AltTitle(t.Type, t.Title)).ToList();
dbManga.Authors.Clear();
dbManga.Authors = resultData.Authors.Select(a => new Author(a.Name)).ToList();
dbContext.Sync();
}
catch (DbUpdateException e)
{
throw;
}
}
}