-
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New: (Indexer) Torrent lat-team.com * Add lat-team to ignore definitions list * Fix lat-team name
- Loading branch information
1 parent
34a09af
commit 87650c8
Showing
2 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> | ||
{ | ||
TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep, TvSearchParam.ImdbId, TvSearchParam.TvdbId | ||
}, | ||
MovieSearchParams = new List<MovieSearchParam> | ||
{ | ||
MovieSearchParam.Q, MovieSearchParam.ImdbId, MovieSearchParam.TmdbId | ||
}, | ||
MusicSearchParams = new List<MusicSearchParam> | ||
{ | ||
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; | ||
} | ||
} | ||
} |