From 87650c83c6122c1a5ce6cc3585d30405be117788 Mon Sep 17 00:00:00 2001 From: Jayson Reis Date: Sun, 26 Sep 2021 05:03:42 +0200 Subject: [PATCH] New: (Indexer) lat-team.com (#505) * New: (Indexer) Torrent lat-team.com * Add lat-team to ignore definitions list * Fix lat-team name --- .../IndexerDefinitionUpdateService.cs | 3 +- .../Indexers/Definitions/LatTeam.cs | 51 +++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 src/NzbDrone.Core/Indexers/Definitions/LatTeam.cs diff --git a/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs b/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs index 33e5eb487..8f861e017 100644 --- a/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs +++ b/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs @@ -35,7 +35,8 @@ namespace NzbDrone.Core.IndexerVersions "danishbytes", "desitorrents", "hdbits", - "shareisland" + "shareisland", + "lat-team" }; private readonly IHttpClient _httpClient; diff --git a/src/NzbDrone.Core/Indexers/Definitions/LatTeam.cs b/src/NzbDrone.Core/Indexers/Definitions/LatTeam.cs new file mode 100644 index 000000000..9874e8338 --- /dev/null +++ b/src/NzbDrone.Core/Indexers/Definitions/LatTeam.cs @@ -0,0 +1,51 @@ +using System.Collections.Generic; +using NLog; +using NzbDrone.Core.Configuration; +using NzbDrone.Core.Indexers.Definitions.UNIT3D; +using NzbDrone.Core.Messaging.Events; + +namespace NzbDrone.Core.Indexers.Definitions +{ + public class LatTeam : Unit3dBase + { + public override string Name => "Lat-Team"; + public override string Language => "es"; + public override string[] IndexerUrls => new[] { "https://lat-team.com/" }; + public override string Description => "Lat-Team is a Private Torrent Tracker for HD MOVIES / TV"; + public override IndexerPrivacy Privacy => IndexerPrivacy.Private; + + public LatTeam(IIndexerHttpClient httpClient, IEventAggregator eventAggregator, IIndexerStatusService indexerStatusService, IConfigService configService, Logger logger) + : base(httpClient, eventAggregator, indexerStatusService, configService, logger) + { + } + + protected override IndexerCapabilities SetCapabilities() + { + var caps = new IndexerCapabilities + { + TvSearchParams = new List + { + TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep, TvSearchParam.ImdbId, TvSearchParam.TvdbId + }, + MovieSearchParams = new List + { + MovieSearchParam.Q, MovieSearchParam.ImdbId, MovieSearchParam.TmdbId + }, + MusicSearchParams = new List + { + MusicSearchParam.Q + }, + }; + + caps.Categories.AddCategoryMapping(1, NewznabStandardCategory.Movies, "Peliculas"); + caps.Categories.AddCategoryMapping(6, NewznabStandardCategory.MoviesOther, "Retro Pelicula"); + caps.Categories.AddCategoryMapping(5, NewznabStandardCategory.TVAnime, "Anime"); + caps.Categories.AddCategoryMapping(2, NewznabStandardCategory.TV, "TV Series"); + caps.Categories.AddCategoryMapping(7, NewznabStandardCategory.TVOther, "Retro Serie TV"); + caps.Categories.AddCategoryMapping(8, NewznabStandardCategory.TVForeign, "Telenovelas y Teleseries"); + caps.Categories.AddCategoryMapping(3, NewznabStandardCategory.Audio, "Musica"); + + return caps; + } + } +}