mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 03:48:19 +02:00
Fix rebase
This commit is contained in:
@@ -17,7 +17,7 @@ public class MetadataEntry
|
|||||||
public MetadataEntry(MetadataFetcher fetcher, Manga manga, string identifier)
|
public MetadataEntry(MetadataFetcher fetcher, Manga manga, string identifier)
|
||||||
{
|
{
|
||||||
this.Manga = manga;
|
this.Manga = manga;
|
||||||
this.MangaId = manga.MangaId;
|
this.MangaId = manga.Key;
|
||||||
this.MetadataFetcher = fetcher;
|
this.MetadataFetcher = fetcher;
|
||||||
this.MetadataFetcherName = fetcher.Name;
|
this.MetadataFetcherName = fetcher.Name;
|
||||||
this.Identifier = identifier;
|
this.Identifier = identifier;
|
||||||
|
@@ -64,21 +64,14 @@ public class MyAnimeList : MetadataFetcher
|
|||||||
throw new FormatException("ID was not in correct format");
|
throw new FormatException("ID was not in correct format");
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
dbManga.Name = resultData.Titles.First().Title;
|
||||||
{
|
dbManga.Description = resultData.Synopsis;
|
||||||
dbManga.Name = resultData.Titles.First().Title;
|
dbManga.AltTitles.Clear();
|
||||||
dbManga.Description = resultData.Synopsis;
|
dbManga.AltTitles = resultData.Titles.Select(t => new AltTitle(t.Type, t.Title)).ToList();
|
||||||
dbManga.AltTitles.Clear();
|
dbManga.Authors.Clear();
|
||||||
dbManga.AltTitles = resultData.Titles.Select(t => new MangaAltTitle(t.Type, t.Title)).ToList();
|
dbManga.Authors = resultData.Authors.Select(a => new Author(a.Name)).ToList();
|
||||||
dbManga.Authors.Clear();
|
|
||||||
dbManga.Authors = resultData.Authors.Select(a => new Author(a.Name)).ToList();
|
|
||||||
|
|
||||||
dbContext.Sync();
|
dbContext.Sync();
|
||||||
}
|
|
||||||
catch (DbUpdateException e)
|
|
||||||
{
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user