Nightly Issues (#2618)

This commit is contained in:
Joe Milazzo 2024-01-18 08:35:54 -06:00 committed by GitHub
parent 0ff6d4a6fc
commit d145dca0e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 138 additions and 100 deletions

View file

@ -114,11 +114,19 @@ public class ExternalMetadataService : IExternalMetadataService
Reviews = result.Reviews
};
}
catch (Exception e)
catch (FlurlHttpException ex)
{
_logger.LogError(e, "An error happened during the request to Kavita+ API");
return null;
if (ex.StatusCode == 404)
{
return null;
}
}
catch (Exception ex)
{
_logger.LogError(ex, "An error happened during the request to Kavita+ API");
}
return null;
}
private async Task<RecommendationDto> ProcessRecommendations(Series series, AppUser user, IEnumerable<MediaRecommendationDto> recs)