sonarr-repo-only/NzbDrone.Core/Download/Clients/Nzbget/QueueItem.cs

32 lines
766 B
C#
Raw Normal View History

using System;
using System.Linq;
using Newtonsoft.Json;
2013-03-05 05:33:34 +00:00
using NzbDrone.Core.Model;
2013-03-05 05:33:34 +00:00
namespace NzbDrone.Core.Download.Clients.Nzbget
{
public class QueueItem
{
private string _title;
public Int32 NzbId { get; set; }
[JsonProperty(PropertyName = "NzbName")]
public string Title
{
get { return _title; }
set
{
_title = value;
ParseResult = Parser.ParseTitle(value.Replace("DUPLICATE / ", String.Empty));
}
}
public String Category { get; set; }
public Int32 FileSizeMb { get; set; }
public Int32 RemainingSizeMb { get; set; }
public EpisodeParseResult ParseResult { private set; get; }
}
}