2020-10-18 17:26:22 +00:00
|
|
|
using System.Collections.Generic;
|
2020-05-03 23:35:52 +00:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
2020-02-09 02:35:16 +00:00
|
|
|
using Jackett.Common.Indexers.Abstract;
|
2020-04-04 06:56:51 +00:00
|
|
|
using Jackett.Common.Models;
|
2018-03-10 08:05:56 +00:00
|
|
|
using Jackett.Common.Services.Interfaces;
|
|
|
|
using Jackett.Common.Utils.Clients;
|
2017-10-29 06:50:47 +00:00
|
|
|
using NLog;
|
2017-04-15 08:45:10 +00:00
|
|
|
|
2018-03-10 08:05:56 +00:00
|
|
|
namespace Jackett.Common.Indexers
|
2017-04-15 08:45:10 +00:00
|
|
|
{
|
2020-05-03 23:35:52 +00:00
|
|
|
[ExcludeFromCodeCoverage]
|
2020-04-04 06:56:51 +00:00
|
|
|
public class PrivateHD : AvistazTracker
|
2017-04-15 08:45:10 +00:00
|
|
|
{
|
2020-12-11 22:14:21 +00:00
|
|
|
public PrivateHD(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps,
|
|
|
|
ICacheService cs)
|
2020-05-11 19:59:28 +00:00
|
|
|
: base(id: "privatehd",
|
|
|
|
name: "PrivateHD",
|
2020-04-04 06:56:51 +00:00
|
|
|
description: "BitTorrent site for High Quality, High Definition (HD) movies and TV Shows",
|
|
|
|
link: "https://privatehd.to/",
|
|
|
|
caps: new TorznabCapabilities
|
|
|
|
{
|
2020-10-18 20:47:36 +00:00
|
|
|
TvSearchParams = new List<TvSearchParam>
|
|
|
|
{
|
2022-08-16 02:16:30 +00:00
|
|
|
TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep, TvSearchParam.ImdbId, TvSearchParam.Genre
|
2020-10-18 20:47:36 +00:00
|
|
|
},
|
|
|
|
MovieSearchParams = new List<MovieSearchParam>
|
|
|
|
{
|
2022-08-16 02:16:30 +00:00
|
|
|
MovieSearchParam.Q, MovieSearchParam.ImdbId, MovieSearchParam.Genre
|
2020-10-20 00:38:27 +00:00
|
|
|
},
|
|
|
|
MusicSearchParams = new List<MusicSearchParam>
|
|
|
|
{
|
|
|
|
MusicSearchParam.Q
|
2020-10-18 20:47:36 +00:00
|
|
|
}
|
2020-04-04 06:56:51 +00:00
|
|
|
},
|
|
|
|
configService: configService,
|
|
|
|
client: wc,
|
|
|
|
logger: l,
|
2020-12-11 22:14:21 +00:00
|
|
|
p: ps,
|
|
|
|
cs: cs
|
|
|
|
)
|
2020-06-07 01:37:12 +00:00
|
|
|
{
|
|
|
|
AddCategoryMapping(1, TorznabCatType.Movies);
|
|
|
|
AddCategoryMapping(1, TorznabCatType.MoviesUHD);
|
|
|
|
AddCategoryMapping(1, TorznabCatType.MoviesHD);
|
|
|
|
AddCategoryMapping(1, TorznabCatType.MoviesSD);
|
|
|
|
AddCategoryMapping(2, TorznabCatType.TV);
|
|
|
|
AddCategoryMapping(2, TorznabCatType.TVUHD);
|
|
|
|
AddCategoryMapping(2, TorznabCatType.TVHD);
|
|
|
|
AddCategoryMapping(2, TorznabCatType.TVSD);
|
|
|
|
AddCategoryMapping(3, TorznabCatType.Audio);
|
|
|
|
}
|
2017-04-15 08:45:10 +00:00
|
|
|
}
|
|
|
|
}
|