Throw a toastr on matched metadata page when there is a rate limit issue.
This commit is contained in:
parent
224e839dad
commit
3a01e9af3a
6 changed files with 55 additions and 11 deletions
|
|
@ -152,6 +152,10 @@ public static class MessageFactory
|
|||
/// A Person merged has been merged into another
|
||||
/// </summary>
|
||||
public const string PersonMerged = "PersonMerged";
|
||||
/// <summary>
|
||||
/// A Rate limit error was hit when matching a series with Kavita+
|
||||
/// </summary>
|
||||
public const string ExternalMatchRateLimitError = "ExternalMatchRateLimitError";
|
||||
|
||||
public static SignalRMessage DashboardUpdateEvent(int userId)
|
||||
{
|
||||
|
|
@ -679,4 +683,16 @@ public static class MessageFactory
|
|||
},
|
||||
};
|
||||
}
|
||||
public static SignalRMessage ExternalMatchRateLimitErrorEvent(int seriesId, string seriesName)
|
||||
{
|
||||
return new SignalRMessage()
|
||||
{
|
||||
Name = ExternalMatchRateLimitError,
|
||||
Body = new
|
||||
{
|
||||
seriesId = seriesId,
|
||||
seriesName = seriesName,
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue