[Feature] Filter Meta Indexer by tag and by language (#11662). resolves #8884 resolves #7170 resolves #4787 resolves #2185

* bump to 0.18.*

Also partially addresses https://github.com/Jackett/Jackett/issues/661 (if user adds `enabled` and `disabled` tags).

Co-authored-by: garfield69 <garfieldsixtynine@gmail.com>
Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
This commit is contained in:
Alessio Gogna
2021-05-08 22:24:18 +02:00
committed by GitHub
parent b07543bff6
commit 66bec102db
30 changed files with 1091 additions and 170 deletions

View File

@@ -34,6 +34,8 @@ namespace Jackett.Common.Indexers
public Encoding Encoding { get; protected set; }
public virtual bool IsConfigured { get; protected set; }
public virtual string[] Tags { get; protected set; }
protected Logger logger;
protected IIndexerConfigurationService configurationService;
protected IProtectionService protectionService;
@@ -148,6 +150,8 @@ namespace Jackett.Common.Indexers
// check whether the site link is well-formatted
var siteUri = new Uri(configData.SiteLink.Value);
SiteLink = configData.SiteLink.Value;
Tags = configData.Tags.Values.Select(t => t.ToLowerInvariant()).ToArray();
}
public void LoadFromSavedConfiguration(JToken jsonConfig)