Display names for Download clients

pull/4/head
Mark McDowall 10 years ago
parent c3e0dbc173
commit 235a986679

@ -75,6 +75,14 @@ namespace NzbDrone.Core.Download.Clients.Deluge
return actualHash.ToUpper();
}
public override string Name
{
get
{
return "Deluge";
}
}
public override IEnumerable<DownloadClientItem> GetItems()
{
IEnumerable<DelugeTorrent> torrents;

@ -187,6 +187,14 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
return historyItems;
}
public override string Name
{
get
{
return "nzbget";
}
}
public override IEnumerable<DownloadClientItem> GetItems()
{
return GetQueue().Concat(GetHistory()).Where(downloadClientItem => downloadClientItem.Category == Settings.TvCategory);

@ -28,6 +28,14 @@ namespace NzbDrone.Core.Download.Clients.Pneumatic
_httpClient = httpClient;
}
public override string Name
{
get
{
return "Pneumatic";
}
}
public override DownloadProtocol Protocol
{
get

@ -7,7 +7,6 @@ using NzbDrone.Common.Disk;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
using NzbDrone.Core.Configuration;
using NzbDrone.Core.Indexers;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Validation;
using NzbDrone.Core.RemotePathMappings;
@ -174,6 +173,14 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
return historyItems;
}
public override string Name
{
get
{
return "SABnzb";
}
}
public override IEnumerable<DownloadClientItem> GetItems()
{
foreach (var downloadClientItem in GetQueue().Concat(GetHistory()))

@ -55,6 +55,14 @@ namespace NzbDrone.Core.Download.Clients.TorrentBlackhole
return hash;
}
public override string Name
{
get
{
return "Torrent Blackhole";
}
}
public override IEnumerable<DownloadClientItem> GetItems()
{
foreach (var folder in _diskProvider.GetDirectories(Settings.WatchFolder))

@ -5,7 +5,6 @@ using System.Text.RegularExpressions;
using NzbDrone.Common.Disk;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
using NzbDrone.Core.Parser;
using NzbDrone.Core.Configuration;
using NLog;
using FluentValidation.Results;
@ -74,6 +73,14 @@ namespace NzbDrone.Core.Download.Clients.Transmission
return string.Format("{0}/{1}", destDir.TrimEnd('/'), Settings.TvCategory);
}
public override string Name
{
get
{
return "Transmission";
}
}
public override IEnumerable<DownloadClientItem> GetItems()
{
List<TransmissionTorrent> torrents;

@ -48,6 +48,14 @@ namespace NzbDrone.Core.Download.Clients.UsenetBlackhole
return null;
}
public override string Name
{
get
{
return "Usenet Blackhole";
}
}
public override IEnumerable<DownloadClientItem> GetItems()
{
foreach (var folder in _diskProvider.GetDirectories(Settings.WatchFolder))

@ -63,6 +63,14 @@ namespace NzbDrone.Core.Download.Clients.UTorrent
return hash;
}
public override string Name
{
get
{
return "uTorrent";
}
}
public override IEnumerable<DownloadClientItem> GetItems()
{
List<UTorrentTorrent> torrents;

@ -20,13 +20,7 @@ namespace NzbDrone.Core.Download
protected readonly IRemotePathMappingService _remotePathMappingService;
protected readonly Logger _logger;
public string Name
{
get
{
return GetType().Name;
}
}
public abstract string Name { get; }
public Type ConfigContract
{

@ -1,6 +1,6 @@
<div class="add-thingy">
<div>
{{implementation}}
{{implementationName}}
</div>
<div class="pull-right">
{{#if_gt presets.length compare=0}}

Loading…
Cancel
Save