Fixed a copy pasta error for SAB history

pull/2/head
Mark McDowall 11 years ago
parent 6b389d2643
commit f9312eb3e5

@ -45,7 +45,7 @@ namespace NzbDrone.Core.Download.Clients.Blackhole
return new QueueItem[0];
}
public override IEnumerable<HistoryItem> GetHistory(int start = 0, int limit = 0)
public override IEnumerable<HistoryItem> GetHistory(int start = 0, int limit = 10)
{
return new HistoryItem[0];
}

@ -65,7 +65,7 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
}
}
public override IEnumerable<HistoryItem> GetHistory(int start = 0, int limit = 0)
public override IEnumerable<HistoryItem> GetHistory(int start = 0, int limit = 10)
{
return new HistoryItem[0];
}

@ -67,7 +67,7 @@ namespace NzbDrone.Core.Download.Clients.Pneumatic
return new QueueItem[0];
}
public override IEnumerable<HistoryItem> GetHistory(int start = 0, int limit = 0)
public override IEnumerable<HistoryItem> GetHistory(int start = 0, int limit = 10)
{
return new HistoryItem[0];
}

@ -89,7 +89,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
}, TimeSpan.FromSeconds(10));
}
public override IEnumerable<HistoryItem> GetHistory(int start = 0, int limit = 0)
public override IEnumerable<HistoryItem> GetHistory(int start = 0, int limit = 10)
{
var items = _sabnzbdProxy.GetHistory(start, limit, Settings).Items;
var historyItems = new List<HistoryItem>();

@ -108,7 +108,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
public SabnzbdHistory GetHistory(int start, int limit, SabnzbdSettings settings)
{
var request = new RestRequest();
var action = String.Format("mode=queue&start={0}&limit={1}", start, limit);
var action = String.Format("mode=history&start={0}&limit={1}", start, limit);
var response = ProcessRequest(request, action, settings);
return Json.Deserialize<SabnzbdHistory>(JObject.Parse(response).SelectToken("history").ToString());

@ -41,7 +41,7 @@ namespace NzbDrone.Core.Download
public abstract string DownloadNzb(RemoteEpisode remoteEpisode);
public abstract IEnumerable<QueueItem> GetQueue();
public abstract IEnumerable<HistoryItem> GetHistory(int start = 0, int limit = 0);
public abstract IEnumerable<HistoryItem> GetHistory(int start = 0, int limit = 10);
public abstract void RemoveFromQueue(string id);
public abstract void RemoveFromHistory(string id);
}

@ -8,16 +8,16 @@
<option es3="false" />
<option forin="true" />
<option immed="true" />
<option latedef="true" />
<option newcap="true" />
<option noarg="true" />
<option noempty="false" />
<option nonew="true" />
<option plusplus="false" />
<option undef="true" />
<option unused="true" />
<option strict="true" />
<option trailing="false" />
<option latedef="true" />
<option unused="true" />
<option quotmark="single" />
<option maxdepth="3" />
<option asi="false" />

@ -26,9 +26,7 @@ define([
this.model.set({
id : undefined,
name : this.model.get('implementationName'),
onGrab : true,
onDownload : true,
onUpgrade : true
enable : true
});
var editView = new EditView({ model: this.model, downloadClientCollection: this.downloadClientCollection });

Loading…
Cancel
Save