Display names for Download clients

This commit is contained in:
Mark McDowall 2015-04-25 09:22:53 -07:00
parent c3e0dbc173
commit 235a986679
10 changed files with 66 additions and 10 deletions

View File

@ -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;

View File

@ -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);

View File

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

View File

@ -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()))

View File

@ -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))

View File

@ -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;

View File

@ -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))

View File

@ -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;

View File

@ -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
{

View File

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