mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-06 08:34:28 +01:00
parent
0199a37a0c
commit
30f53c20ed
2 changed files with 6 additions and 6 deletions
|
|
@ -9,20 +9,18 @@
|
|||
using AngleSharp.Dom;
|
||||
using AngleSharp.Html.Dom;
|
||||
using AngleSharp.Html.Parser;
|
||||
using FluentValidation;
|
||||
using NLog;
|
||||
using NzbDrone.Common.Http;
|
||||
using NzbDrone.Core.Annotations;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.Indexers.Settings;
|
||||
using NzbDrone.Core.IndexerSearch.Definitions;
|
||||
using NzbDrone.Core.Messaging.Events;
|
||||
using NzbDrone.Core.Parser;
|
||||
using NzbDrone.Core.Parser.Model;
|
||||
using NzbDrone.Core.Validation;
|
||||
|
||||
namespace NzbDrone.Core.Indexers.Definitions;
|
||||
|
||||
[Obsolete("Converted to Torznab")]
|
||||
public class MoreThanTV : TorrentIndexerBase<CookieTorrentBaseSettings>
|
||||
{
|
||||
public override string Name => "MoreThanTV";
|
||||
|
|
|
|||
|
|
@ -88,8 +88,9 @@ public override IEnumerable<ProviderDefinition> DefaultDefinitions
|
|||
{
|
||||
get
|
||||
{
|
||||
yield return GetDefinition("AnimeTosho", GetSettings("https://feed.animetosho.org"));
|
||||
yield return GetDefinition("Generic Torznab", GetSettings(""));
|
||||
yield return GetDefinition("AnimeTosho", "", GetSettings("https://feed.animetosho.org"));
|
||||
yield return GetDefinition("MoreThanTV", "Private torrent tracker for TV / MOVIES", GetSettings("https://www.morethantv.me"));
|
||||
yield return GetDefinition("Generic Torznab", "A Newznab-like api for torrents.", GetSettings(""));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -99,12 +100,13 @@ public Torznab(INewznabCapabilitiesProvider capabilitiesProvider, IIndexerHttpCl
|
|||
_capabilitiesProvider = capabilitiesProvider;
|
||||
}
|
||||
|
||||
private IndexerDefinition GetDefinition(string name, TorznabSettings settings)
|
||||
private IndexerDefinition GetDefinition(string name, string description, TorznabSettings settings)
|
||||
{
|
||||
return new IndexerDefinition
|
||||
{
|
||||
Enable = true,
|
||||
Name = name,
|
||||
Description = description,
|
||||
Implementation = GetType().Name,
|
||||
Settings = settings,
|
||||
Protocol = DownloadProtocol.Usenet,
|
||||
|
|
|
|||
Loading…
Reference in a new issue