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:21:18 +00:00
|
|
|
using NLog;
|
2015-08-23 20:45:52 +00:00
|
|
|
|
2018-03-10 08:05:56 +00:00
|
|
|
namespace Jackett.Common.Indexers
|
2015-08-23 20:45:52 +00:00
|
|
|
{
|
2020-05-03 23:35:52 +00:00
|
|
|
[ExcludeFromCodeCoverage]
|
2017-07-03 05:15:47 +00:00
|
|
|
public class CinemaZ : AvistazTracker
|
2015-08-23 20:45:52 +00:00
|
|
|
{
|
2020-12-11 22:14:21 +00:00
|
|
|
public CinemaZ(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps,
|
|
|
|
ICacheService cs)
|
2020-05-11 19:59:28 +00:00
|
|
|
: base(id: "cinemaz",
|
|
|
|
name: "CinemaZ",
|
2020-04-04 06:56:51 +00:00
|
|
|
description: "Part of the Avistaz network.",
|
|
|
|
link: "https://cinemaz.to/",
|
|
|
|
caps: new TorznabCapabilities
|
|
|
|
{
|
2020-10-18 20:47:36 +00:00
|
|
|
TvSearchParams = new List<TvSearchParam>
|
|
|
|
{
|
|
|
|
TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep, TvSearchParam.ImdbId
|
|
|
|
},
|
|
|
|
MovieSearchParams = new List<MovieSearchParam> {
|
|
|
|
MovieSearchParam.Q, MovieSearchParam.ImdbId
|
|
|
|
|
|
|
|
}
|
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);
|
|
|
|
}
|
2015-08-23 20:45:52 +00:00
|
|
|
}
|
2020-02-09 02:35:16 +00:00
|
|
|
}
|