1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

Display names for Indexers

This commit is contained in:
Mark McDowall 2015-04-25 09:19:23 -07:00
parent e296d94417
commit c3e0dbc173
15 changed files with 106 additions and 10 deletions

View File

@ -9,6 +9,14 @@ namespace NzbDrone.Core.Test.IndexerTests
{
public class TestIndexer : HttpIndexerBase<TestIndexerSettings>
{
public override string Name
{
get
{
return "Test Indexer";
}
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Usenet; } }
public Int32 _supportedPageSize;

View File

@ -8,6 +8,14 @@ namespace NzbDrone.Core.Indexers.BitMeTv
{
public class BitMeTv : HttpIndexerBase<BitMeTvSettings>
{
public override string Name
{
get
{
return "BitMeTV";
}
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Torrent; } }
public override Boolean SupportsSearch { get { return false; } }
public override Int32 PageSize { get { return 0; } }

View File

@ -7,6 +7,14 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet
{
public class BroadcastheNet : HttpIndexerBase<BroadcastheNetSettings>
{
public override string Name
{
get
{
return "BroadcasttheNet";
}
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Torrent; } }
public override bool SupportsRss { get { return true; } }
public override bool SupportsSearch { get { return true; } }

View File

@ -7,6 +7,14 @@ namespace NzbDrone.Core.Indexers.Eztv
{
public class Eztv : HttpIndexerBase<EztvSettings>
{
public override string Name
{
get
{
return "EZTV";
}
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Torrent; } }
public Eztv(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, Logger logger)

View File

@ -2,12 +2,19 @@
using NzbDrone.Common.Http;
using NzbDrone.Core.Configuration;
using NzbDrone.Core.Parser;
using NzbDrone.Core.ThingiProvider;
namespace NzbDrone.Core.Indexers.Fanzub
{
public class Fanzub : HttpIndexerBase<FanzubSettings>
{
public override string Name
{
get
{
return "Fanzub";
}
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Usenet; } }
public Fanzub(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, Logger logger)

View File

@ -8,6 +8,14 @@ namespace NzbDrone.Core.Indexers.IPTorrents
{
public class IPTorrents : HttpIndexerBase<IPTorrentsSettings>
{
public override string Name
{
get
{
return "IP Torrents";
}
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Torrent; } }
public override Boolean SupportsSearch { get { return false; } }
public override Int32 PageSize { get { return 0; } }

View File

@ -19,14 +19,7 @@ public abstract class IndexerBase<TSettings> : IIndexer
protected readonly IParsingService _parsingService;
protected readonly Logger _logger;
public string Name
{
get
{
return GetType().Name;
}
}
public abstract string Name { get; }
public abstract DownloadProtocol Protocol { get; }
public abstract Boolean SupportsRss { get; }

View File

@ -8,6 +8,14 @@ namespace NzbDrone.Core.Indexers.KickassTorrents
{
public class KickassTorrents : HttpIndexerBase<KickassTorrentsSettings>
{
public override string Name
{
get
{
return "Kickass Torrents";
}
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Torrent; } }
public override Int32 PageSize { get { return 25; } }

View File

@ -11,6 +11,14 @@ namespace NzbDrone.Core.Indexers.Newznab
{
public class Newznab : HttpIndexerBase<NewznabSettings>
{
public override string Name
{
get
{
return "Newznab";
}
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Usenet; } }
public override Int32 PageSize { get { return 100; } }

View File

@ -8,6 +8,14 @@ namespace NzbDrone.Core.Indexers.Nyaa
{
public class Nyaa : HttpIndexerBase<NyaaSettings>
{
public override string Name
{
get
{
return "Nyaa";
}
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Torrent; } }
public override Int32 PageSize { get { return 100; } }

View File

@ -7,6 +7,14 @@ namespace NzbDrone.Core.Indexers.Omgwtfnzbs
{
public class Omgwtfnzbs : HttpIndexerBase<OmgwtfnzbsSettings>
{
public override string Name
{
get
{
return "omgwtfnzbs";
}
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Usenet; } }
public Omgwtfnzbs(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, Logger logger)

View File

@ -8,6 +8,14 @@ namespace NzbDrone.Core.Indexers.Torrentleech
{
public class Torrentleech : HttpIndexerBase<TorrentleechSettings>
{
public override string Name
{
get
{
return "TorrentLeech";
}
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Torrent; } }
public override Boolean SupportsSearch { get { return false; } }
public override Int32 PageSize { get { return 0; } }

View File

@ -11,6 +11,14 @@ namespace NzbDrone.Core.Indexers.Torznab
{
public class Torznab : HttpIndexerBase<TorznabSettings>
{
public override string Name
{
get
{
return "Torznab";
}
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Torrent; } }
public override Int32 PageSize { get { return 100; } }

View File

@ -8,6 +8,14 @@ namespace NzbDrone.Core.Indexers.Wombles
{
public class Wombles : HttpIndexerBase<NullConfig>
{
public override string Name
{
get
{
return "Womble's";
}
}
public override DownloadProtocol Protocol { get { return DownloadProtocol.Usenet; } }
public override bool SupportsSearch { get { return false; } }

View File

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