mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
TehConnection.me: add indexer
This commit is contained in:
@@ -244,6 +244,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/
|
|||||||
* Superbits
|
* Superbits
|
||||||
* Tasmanit
|
* Tasmanit
|
||||||
* TBPlus
|
* TBPlus
|
||||||
|
* TehConnection.me
|
||||||
* TenYardTracker
|
* TenYardTracker
|
||||||
* The Empire
|
* The Empire
|
||||||
* The Geeks
|
* The Geeks
|
||||||
|
@@ -239,10 +239,40 @@ namespace Jackett.Common.Indexers.Abstract
|
|||||||
if (torrent["hasCue"] != null && (bool)torrent["hasCue"])
|
if (torrent["hasCue"] != null && (bool)torrent["hasCue"])
|
||||||
flags.Add("Cue");
|
flags.Add("Cue");
|
||||||
|
|
||||||
|
// tehconnection.me specific?
|
||||||
|
var lang = (string)torrent["lang"];
|
||||||
|
if (!string.IsNullOrEmpty(lang) && lang != "---")
|
||||||
|
flags.Add(lang);
|
||||||
|
|
||||||
var media = (string)torrent["media"];
|
var media = (string)torrent["media"];
|
||||||
if (!string.IsNullOrEmpty(media))
|
if (!string.IsNullOrEmpty(media))
|
||||||
flags.Add(media);
|
flags.Add(media);
|
||||||
|
|
||||||
|
// tehconnection.me specific?
|
||||||
|
var resolution = (string)torrent["resolution"];
|
||||||
|
if (!string.IsNullOrEmpty(resolution))
|
||||||
|
flags.Add(resolution);
|
||||||
|
|
||||||
|
// tehconnection.me specific?
|
||||||
|
var container = (string)torrent["container"];
|
||||||
|
if (!string.IsNullOrEmpty(container))
|
||||||
|
flags.Add(container);
|
||||||
|
|
||||||
|
// tehconnection.me specific?
|
||||||
|
var codec = (string)torrent["codec"];
|
||||||
|
if (!string.IsNullOrEmpty(codec))
|
||||||
|
flags.Add(codec);
|
||||||
|
|
||||||
|
// tehconnection.me specific?
|
||||||
|
var audio = (string)torrent["audio"];
|
||||||
|
if (!string.IsNullOrEmpty(audio))
|
||||||
|
flags.Add(audio);
|
||||||
|
|
||||||
|
// tehconnection.me specific?
|
||||||
|
var subbing = (string)torrent["subbing"];
|
||||||
|
if (!string.IsNullOrEmpty(subbing) && subbing != "---")
|
||||||
|
flags.Add(subbing);
|
||||||
|
|
||||||
if (torrent["remastered"] != null && (bool)torrent["remastered"])
|
if (torrent["remastered"] != null && (bool)torrent["remastered"])
|
||||||
{
|
{
|
||||||
var remasterYear = (string)torrent["remasterYear"];
|
var remasterYear = (string)torrent["remasterYear"];
|
||||||
|
32
src/Jackett.Common/Indexers/TehConnectionMe.cs
Normal file
32
src/Jackett.Common/Indexers/TehConnectionMe.cs
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using Jackett.Common.Indexers.Abstract;
|
||||||
|
using Jackett.Common.Models;
|
||||||
|
using Jackett.Common.Services.Interfaces;
|
||||||
|
using Jackett.Common.Utils.Clients;
|
||||||
|
using NLog;
|
||||||
|
|
||||||
|
namespace Jackett.Common.Indexers
|
||||||
|
{
|
||||||
|
public class TehConnectionMe : GazelleTracker
|
||||||
|
{
|
||||||
|
public TehConnectionMe(IIndexerConfigurationService configService, WebClient webClient, Logger logger, IProtectionService protectionService)
|
||||||
|
: base(name: "TehConnection.me",
|
||||||
|
desc: "A movies tracker",
|
||||||
|
link: "https://tehconnection.me/",
|
||||||
|
configService: configService,
|
||||||
|
logger: logger,
|
||||||
|
protectionService: protectionService,
|
||||||
|
webClient: webClient,
|
||||||
|
supportsFreeleechTokens: true
|
||||||
|
)
|
||||||
|
{
|
||||||
|
Language = "en-us";
|
||||||
|
Type = "private";
|
||||||
|
|
||||||
|
AddCategoryMapping(1, TorznabCatType.Movies, "Feature Film");
|
||||||
|
AddCategoryMapping(2, TorznabCatType.Movies, "Short Film");
|
||||||
|
AddCategoryMapping(3, TorznabCatType.Movies, "Miniseries");
|
||||||
|
AddCategoryMapping(4, TorznabCatType.Movies, "Other");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user