Throw a toastr on matched metadata page when there is a rate limit issue.

This commit is contained in:
Joseph Milazzo 2025-06-20 16:03:27 -05:00
parent 224e839dad
commit 3a01e9af3a
6 changed files with 55 additions and 11 deletions

View file

@ -386,6 +386,9 @@ public class ExternalMetadataService : IExternalMetadataService
{
// We can't rethrow because Fix match is done in a background thread and Hangfire will requeue multiple times
_logger.LogInformation(ex, "Rate limit hit for matching {SeriesName} with Kavita+", series.Name);
// Fire SignalR event about this
await _eventHub.SendMessageAsync(MessageFactory.ExternalMatchRateLimitError,
MessageFactory.ExternalMatchRateLimitErrorEvent(series.Id, series.Name));
}
}