mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 12:32:31 +01:00
Display names for Download clients
This commit is contained in:
parent
c3e0dbc173
commit
235a986679
@ -75,6 +75,14 @@ protected override String AddFromTorrentFile(RemoteEpisode remoteEpisode, String
|
|||||||
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 @@ private IEnumerable<DownloadClientItem> GetHistory()
|
|||||||
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 @@ public Pneumatic(IHttpClient httpClient,
|
|||||||
_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.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 @@ private IEnumerable<DownloadClientItem> GetHistory()
|
|||||||
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 @@ protected override string AddFromTorrentFile(RemoteEpisode remoteEpisode, string
|
|||||||
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 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 @@ private String GetDownloadDirectory()
|
|||||||
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 @@ protected override string AddFromNzbFile(RemoteEpisode remoteEpisode, string fil
|
|||||||
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 @@ protected override String AddFromTorrentFile(RemoteEpisode remoteEpisode, String
|
|||||||
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 @@ public abstract class DownloadClientBase<TSettings> : IDownloadClient
|
|||||||
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…
Reference in New Issue
Block a user