Add language field to indexers (#788)

This commit is contained in:
kaso17 2016-12-02 18:58:10 +01:00 committed by GitHub
parent 6a3374ea86
commit e56ff204f8
4 changed files with 4 additions and 0 deletions

View File

@ -232,6 +232,7 @@ namespace Jackett.Controllers
item["description"] = indexer.DisplayDescription;
item["configured"] = indexer.IsConfigured;
item["site_link"] = indexer.SiteLink;
item["language"] = indexer.Language;
item["potatoenabled"] = indexer.TorznabCaps.Categories.Select(c => c.ID).Any(i => PotatoController.MOVIE_CATS.Contains(i));
var caps = new JObject();

View File

@ -20,6 +20,7 @@ namespace Jackett.Indexers
public string SiteLink { get; protected set; }
public string DisplayDescription { get; protected set; }
public string DisplayName { get; protected set; }
public string Language { get; protected set; }
public string ID { get { return GetIndexerID(GetType()); } }
public bool IsConfigured { get; protected set; }

View File

@ -169,6 +169,7 @@ namespace Jackett.Indexers
SiteLink = Definition.Links[0]; // TODO: implement alternative links
if (!SiteLink.EndsWith("/"))
SiteLink += "/";
Language = Definition.Language;
TorznabCaps = TorznabUtil.CreateDefaultTorznabTVCaps(); // TODO implement caps
// init config Data

View File

@ -16,6 +16,7 @@ namespace Jackett.Indexers
string DisplayName { get; }
string DisplayDescription { get; }
string Language { get; }
string ID { get; }
TorznabCapabilities TorznabCaps { get; }