Improve stalled and failed imports (#37)

This commit is contained in:
Marius Nechifor
2025-01-13 13:18:58 +02:00
committed by GitHub
parent c7ad1c5ee6
commit f0dc51f10b
20 changed files with 204 additions and 38 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
namespace Domain.Models.Arr.Queue;
namespace Domain.Models.Arr.Queue;
public record QueueRecord
public sealed record QueueRecord
{
public int SeriesId { get; init; }
public int EpisodeId { get; init; }
@@ -10,6 +10,7 @@ public record QueueRecord
public string Status { get; init; }
public string TrackedDownloadStatus { get; init; }
public string TrackedDownloadState { get; init; }
public List<TrackedDownloadStatusMessage>? StatusMessages { get; init; }
public required string DownloadId { get; init; }
public required string Protocol { get; init; }
public required int Id { get; init; }
@@ -0,0 +1,8 @@
namespace Domain.Models.Arr.Queue;
public sealed record TrackedDownloadStatusMessage
{
public string Title { get; set; }
public List<string>? Messages { get; set; }
}
@@ -2,11 +2,13 @@
public sealed record TorrentStatus
{
public string? Hash { get; set; }
public string? Hash { get; init; }
public string? State { get; set; }
public string? State { get; init; }
public string? Name { get; set; }
public string? Name { get; init; }
public ulong Eta { get; set; }
public ulong Eta { get; init; }
public bool Private { get; init; }
}