mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Done #678
This commit is contained in:
parent
cb11267fd2
commit
9f41a511cd
9 changed files with 21 additions and 10 deletions
|
@ -39,6 +39,7 @@ namespace PlexRequests.UI.Models
|
|||
public string Title { get; set; }
|
||||
public FaultTypeViewModel FaultType { get; set; }
|
||||
public DateTime? LastRetry { get; set; }
|
||||
public string Message { get; set; }
|
||||
}
|
||||
|
||||
public enum RequestTypeViewModel
|
||||
|
|
|
@ -65,7 +65,8 @@ namespace PlexRequests.UI.Modules.Admin
|
|||
Title = ByteConverterHelper.ReturnObject<RequestedModel>(r.Content).Title,
|
||||
Id = r.Id,
|
||||
PrimaryIdentifier = r.PrimaryIdentifier,
|
||||
LastRetry = r.LastRetry
|
||||
LastRetry = r.LastRetry,
|
||||
Message = r.Message
|
||||
}).ToList();
|
||||
|
||||
return View["RequestFaultQueue", model];
|
||||
|
|
|
@ -595,7 +595,7 @@ namespace PlexRequests.UI.Modules
|
|||
catch (Exception e)
|
||||
{
|
||||
Log.Fatal(e);
|
||||
await FaultQueue.QueueItemAsync(model, movieInfo.Id.ToString(), RequestType.Movie, FaultType.RequestFault);
|
||||
await FaultQueue.QueueItemAsync(model, movieInfo.Id.ToString(), RequestType.Movie, FaultType.RequestFault, e.Message);
|
||||
|
||||
await NotificationService.Publish(new NotificationModel
|
||||
{
|
||||
|
@ -866,7 +866,7 @@ namespace PlexRequests.UI.Modules
|
|||
|
||||
if (showInfo.externals?.thetvdb == null)
|
||||
{
|
||||
await FaultQueue.QueueItemAsync(model, showInfo.id.ToString(), RequestType.TvShow, FaultType.MissingInformation);
|
||||
await FaultQueue.QueueItemAsync(model, showInfo.id.ToString(), RequestType.TvShow, FaultType.MissingInformation, "We do not have a TheTVDBId from TVMaze");
|
||||
await NotificationService.Publish(new NotificationModel
|
||||
{
|
||||
DateTime = DateTime.Now,
|
||||
|
@ -941,7 +941,7 @@ namespace PlexRequests.UI.Modules
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
await FaultQueue.QueueItemAsync(model, showInfo.id.ToString(), RequestType.TvShow, FaultType.RequestFault);
|
||||
await FaultQueue.QueueItemAsync(model, showInfo.id.ToString(), RequestType.TvShow, FaultType.RequestFault, e.Message);
|
||||
await NotificationService.Publish(new NotificationModel
|
||||
{
|
||||
DateTime = DateTime.Now,
|
||||
|
@ -1116,7 +1116,7 @@ namespace PlexRequests.UI.Modules
|
|||
catch (Exception e)
|
||||
{
|
||||
Log.Error(e);
|
||||
await FaultQueue.QueueItemAsync(model, albumInfo.id, RequestType.Album, FaultType.RequestFault);
|
||||
await FaultQueue.QueueItemAsync(model, albumInfo.id, RequestType.Album, FaultType.RequestFault, e.Message);
|
||||
|
||||
await NotificationService.Publish(new NotificationModel
|
||||
{
|
||||
|
|
|
@ -20,6 +20,9 @@
|
|||
<th>
|
||||
LastRetry
|
||||
</th>
|
||||
<th>
|
||||
Error Description
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -39,6 +42,9 @@
|
|||
<td>
|
||||
@m.LastRetry
|
||||
</td>
|
||||
<td>
|
||||
@m.Message
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
var donationText = $("#donationText");
|
||||
donateLink.attr("href", result.url);
|
||||
if (result.message) {
|
||||
donationText.text(result.message);
|
||||
donationText.text(result.message);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue