Skip to content

Commit

Permalink
chore: move metadata fetch log
Browse files Browse the repository at this point in the history
  • Loading branch information
Thundernerd committed Jan 30, 2024
1 parent 587e8ab commit d081a41
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ public async Task Initialize()
{
foreach (RequestedMangaDocument requestedMangaDocument in _requestedMangaRepository.Items)
{
_logger.LogInformation("Fetching metadata for manga with id '{Id}'", requestedMangaDocument.Id);

MangaMetadataDocument? mangaMetadataDocument = _mangaMetadataRepository.GetByManga(requestedMangaDocument);

if (mangaMetadataDocument != null)
{
continue;
}

_logger.LogInformation("Fetching metadata for manga with id '{Id}'", requestedMangaDocument.Id);

Result<Media?> result = await _aniListApi.GetMedia(requestedMangaDocument.SearchId);

if (result.IsFailed)
Expand Down

0 comments on commit d081a41

Please sign in to comment.