mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
shizaproject: update indexer for core Jackett changes (#14721)
This commit is contained in:
@@ -2,7 +2,6 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Jackett.Common.Models;
|
using Jackett.Common.Models;
|
||||||
using Jackett.Common.Models.IndexerConfig;
|
using Jackett.Common.Models.IndexerConfig;
|
||||||
@@ -14,40 +13,46 @@ using NLog;
|
|||||||
namespace Jackett.Common.Indexers
|
namespace Jackett.Common.Indexers
|
||||||
{
|
{
|
||||||
[ExcludeFromCodeCoverage]
|
[ExcludeFromCodeCoverage]
|
||||||
internal class ShizaProject : BaseWebIndexer
|
public class ShizaProject : IndexerBase
|
||||||
{
|
{
|
||||||
public override string[] LegacySiteLinks { get; protected set; } = {
|
public override string Id => "shizaroject";
|
||||||
|
public override string Name => "ShizaProject";
|
||||||
|
public override string Description => "ShizaProject Tracker is a Semi-Private RUSSIAN tracker and release group for ANIME";
|
||||||
|
public override string SiteLink { get; protected set; } = "https://shiza-project.com/";
|
||||||
|
public override string[] LegacySiteLinks => new[]
|
||||||
|
{
|
||||||
"http://shiza-project.com/" // site is forcing https
|
"http://shiza-project.com/" // site is forcing https
|
||||||
};
|
};
|
||||||
|
public override string Language => "ru-RU";
|
||||||
|
public override string Type => "public";
|
||||||
|
|
||||||
|
public override TorznabCapabilities TorznabCaps => SetCapabilities();
|
||||||
|
|
||||||
public ShizaProject(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps,
|
public ShizaProject(IIndexerConfigurationService configService, WebClient wc, Logger l, IProtectionService ps,
|
||||||
ICacheService cs)
|
ICacheService cs)
|
||||||
: base(id: "ShizaProject",
|
: base(configService: configService,
|
||||||
name: "ShizaProject",
|
|
||||||
description: "ShizaProject Tracker is a Semi-Private RUSSIAN tracker and release group for ANIME",
|
|
||||||
link: "https://shiza-project.com/",
|
|
||||||
caps: new TorznabCapabilities
|
|
||||||
{
|
|
||||||
TvSearchParams = new List<TvSearchParam>
|
|
||||||
{
|
|
||||||
TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep
|
|
||||||
}
|
|
||||||
},
|
|
||||||
configService: configService,
|
|
||||||
client: wc,
|
client: wc,
|
||||||
logger: l,
|
logger: l,
|
||||||
p: ps,
|
p: ps,
|
||||||
cacheService: cs,
|
cacheService: cs,
|
||||||
configData: new ConfigurationData())
|
configData: new ConfigurationData())
|
||||||
{
|
{
|
||||||
Encoding = Encoding.UTF8;
|
|
||||||
Language = "ru-RU";
|
|
||||||
Type = "public";
|
|
||||||
|
|
||||||
AddCategoryMapping(1, TorznabCatType.TVAnime, "Anime");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private ConfigurationDataBasicLoginWithEmail Configuration => (ConfigurationDataBasicLoginWithEmail)configData;
|
private TorznabCapabilities SetCapabilities()
|
||||||
|
{
|
||||||
|
var caps = new TorznabCapabilities
|
||||||
|
{
|
||||||
|
TvSearchParams = new List<TvSearchParam>
|
||||||
|
{
|
||||||
|
TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
caps.Categories.AddCategoryMapping(1, TorznabCatType.TVAnime, "Anime");
|
||||||
|
|
||||||
|
return caps;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// http://shiza-project.com/graphql
|
/// http://shiza-project.com/graphql
|
||||||
|
Reference in New Issue
Block a user