2012-01-19 04:05:03 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Model.Sabnzbd
|
|
|
|
|
{
|
|
|
|
|
public class SabQueueItem
|
|
|
|
|
{
|
|
|
|
|
public string Status { get; set; }
|
|
|
|
|
public int Index { get; set; }
|
|
|
|
|
public TimeSpan Timeleft { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty(PropertyName = "mb")]
|
|
|
|
|
public decimal Size { get; set; }
|
|
|
|
|
|
2012-01-20 05:37:08 +00:00
|
|
|
|
private string _title;
|
|
|
|
|
|
2012-01-19 04:05:03 +00:00
|
|
|
|
[JsonProperty(PropertyName = "filename")]
|
2012-01-20 05:37:08 +00:00
|
|
|
|
public string Title
|
|
|
|
|
{
|
|
|
|
|
get { return _title; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_title = value;
|
2012-01-22 04:06:17 +00:00
|
|
|
|
ParseResult = Parser.ParseTitle(value.Replace("DUPLICATE / ", String.Empty));
|
2012-01-20 05:37:08 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2012-01-19 04:05:03 +00:00
|
|
|
|
|
|
|
|
|
public SabPriorityType Priority { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty(PropertyName = "cat")]
|
|
|
|
|
public string Category { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty(PropertyName = "mbleft")]
|
|
|
|
|
public decimal SizeLeft { get; set; }
|
|
|
|
|
|
|
|
|
|
public int Percentage { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty(PropertyName = "nzo_id")]
|
|
|
|
|
public string Id { get; set; }
|
2012-01-20 05:37:08 +00:00
|
|
|
|
|
|
|
|
|
public EpisodeParseResult ParseResult { private set; get; }
|
2012-01-19 04:05:03 +00:00
|
|
|
|
}
|
|
|
|
|
}
|