Jackett/src/Jackett.Common/Indexers/NotWhatCD.cs

43 lines
1.7 KiB
C#
Raw Normal View History

2020-02-09 02:35:16 +00:00
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
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
2016-12-18 10:36:11 +00:00
{
[ExcludeFromCodeCoverage]
public class NotWhatCD : GazelleTracker
2016-12-18 10:36:11 +00:00
{
public NotWhatCD(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps)
: base(id: "notwhatcd",
name: "notwhat.cd",
description: "A music tracker",
link: "https://notwhat.cd/",
caps: new TorznabCapabilities
{
MovieSearchParams = new List<MovieSearchParam> { MovieSearchParam.Q },
SupportedMusicSearchParamsList = new List<string> { "q", "album", "artist", "label", "year" }
},
configService: configService,
client: wc,
logger: l,
p: ps,
supportsFreeleechTokens: true)
2016-12-18 10:36:11 +00:00
{
Language = "en-us";
Type = "private";
2016-12-18 10:36:11 +00:00
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");
2016-12-18 10:36:11 +00:00
}
}
2020-02-09 02:35:16 +00:00
}