From 3dfba7c2043630a0b113365a7358874326e9b9e2 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Sun, 18 Dec 2016 11:36:11 +0100 Subject: [PATCH] Add notwhat.cd tracker --- README.md | 1 + src/Jackett/Indexers/notwhatcd.cs | 32 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 src/Jackett/Indexers/notwhatcd.cs diff --git a/README.md b/README.md index 96aed293d..bf8984686 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * NetHD * NextGen * Norbits + * notwhat.cd * PassTheHeadphones * PassThePopcorn * PirateTheNet diff --git a/src/Jackett/Indexers/notwhatcd.cs b/src/Jackett/Indexers/notwhatcd.cs new file mode 100644 index 000000000..bad540516 --- /dev/null +++ b/src/Jackett/Indexers/notwhatcd.cs @@ -0,0 +1,32 @@ +using Jackett.Models; +using NLog; +using Jackett.Services; +using Jackett.Utils.Clients; +using Jackett.Indexers.Abstract; + +namespace Jackett.Indexers +{ + public class notwhatcd : GazelleTracker, IIndexer + { + public notwhatcd(IIndexerManagerService indexerManager, IWebClient webClient, Logger logger, IProtectionService protectionService) + : base(name: "notwhat.cd", + desc: "A music tracker", + link: "https://notwhat.cd/", + indexerManager: indexerManager, + logger: logger, + protectionService: protectionService, + webClient: webClient + ) + { + Language = "en-us"; + + AddCategoryMapping(1, TorznabCatType.Audio, "Music"); + AddCategoryMapping(2, TorznabCatType.PC, "Applications"); + AddCategoryMapping(3, TorznabCatType.Books, "E-Books"); + AddCategoryMapping(4, TorznabCatType.AudioAudiobook, "Audiobooks"); + AddCategoryMapping(5, TorznabCatType.Movies, "E-Learning Videos"); + AddCategoryMapping(6, TorznabCatType.TV, "Comedy"); + AddCategoryMapping(7, TorznabCatType.Books, "Comics"); + } + } +} \ No newline at end of file