Fix: Resolved a parsing issue when timeleft for an SabQueueItem was greater than 24 hours.

This commit is contained in:
Mark McDowall 2012-01-30 13:34:15 -08:00
commit 1f983094ac
5 changed files with 63 additions and 3 deletions

View file

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using NzbDrone.Core.Helpers;
namespace NzbDrone.Core.Model.Sabnzbd
{
@ -10,6 +11,8 @@ namespace NzbDrone.Core.Model.Sabnzbd
{
public string Status { get; set; }
public int Index { get; set; }
[JsonConverter(typeof(SabnzbdQueueTimeConverter))]
public TimeSpan Timeleft { get; set; }
[JsonProperty(PropertyName = "mb")]