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-04-04 06:56:51 +00:00
|
|
|
public CinemaZ(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps)
|
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
|
|
|
|
{
|
|
|
|
SupportsImdbMovieSearch = true
|
2020-05-23 12:46:22 +00:00
|
|
|
// SupportsImdbTVSearch = true (supported by the site but disabled due to #8107)
|
2020-04-04 06:56:51 +00:00
|
|
|
},
|
|
|
|
configService: configService,
|
|
|
|
client: wc,
|
|
|
|
logger: l,
|
|
|
|
p: ps)
|
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
|
|
|
}
|