diff --git a/src/Mangarr.Stack/Initialization/MissingMetadataInitializer.cs b/src/Mangarr.Stack/Initialization/MissingMetadataInitializer.cs index d6944f7..ef00e5a 100644 --- a/src/Mangarr.Stack/Initialization/MissingMetadataInitializer.cs +++ b/src/Mangarr.Stack/Initialization/MissingMetadataInitializer.cs @@ -32,8 +32,6 @@ 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) @@ -41,6 +39,8 @@ public async Task Initialize() continue; } + _logger.LogInformation("Fetching metadata for manga with id '{Id}'", requestedMangaDocument.Id); + Result result = await _aniListApi.GetMedia(requestedMangaDocument.SearchId); if (result.IsFailed)