|
|
@ -4,6 +4,7 @@ using System.Linq;
|
|
|
|
using NLog;
|
|
|
|
using NLog;
|
|
|
|
using NzbDrone.Common;
|
|
|
|
using NzbDrone.Common;
|
|
|
|
using NzbDrone.Common.Http;
|
|
|
|
using NzbDrone.Common.Http;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
using NzbDrone.Core.Indexers;
|
|
|
|
using NzbDrone.Core.Indexers;
|
|
|
|
using NzbDrone.Core.Messaging.Commands;
|
|
|
|
using NzbDrone.Core.Messaging.Commands;
|
|
|
|
using NzbDrone.Core.Parser;
|
|
|
|
using NzbDrone.Core.Parser;
|
|
|
@ -18,10 +19,11 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
|
|
|
|
private readonly IHttpProvider _httpProvider;
|
|
|
|
private readonly IHttpProvider _httpProvider;
|
|
|
|
|
|
|
|
|
|
|
|
public Nzbget(INzbgetProxy proxy,
|
|
|
|
public Nzbget(INzbgetProxy proxy,
|
|
|
|
|
|
|
|
IConfigService configService,
|
|
|
|
IParsingService parsingService,
|
|
|
|
IParsingService parsingService,
|
|
|
|
IHttpProvider httpProvider,
|
|
|
|
IHttpProvider httpProvider,
|
|
|
|
Logger logger)
|
|
|
|
Logger logger)
|
|
|
|
: base(parsingService, logger)
|
|
|
|
: base(configService, parsingService, logger)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_proxy = proxy;
|
|
|
|
_proxy = proxy;
|
|
|
|
_httpProvider = httpProvider;
|
|
|
|
_httpProvider = httpProvider;
|
|
|
@ -139,7 +141,7 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
history = _proxy.GetHistory(Settings);
|
|
|
|
history = _proxy.GetHistory(Settings).Take(_configService.DownloadClientHistoryLimit).ToList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (DownloadClientException ex)
|
|
|
|
catch (DownloadClientException ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|