Display names for Download clients

pull/2/head
Mark McDowall 9 years ago
parent c3e0dbc173
commit 235a986679

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save