mirror of https://github.com/Jackett/Jackett
Add GetAllTrackerCategories()
This commit is contained in:
parent
80d29343a5
commit
e088f1e960
|
@ -531,6 +531,11 @@ namespace Jackett.Indexers
|
|||
}
|
||||
}
|
||||
|
||||
protected List<string> GetAllTrackerCategories()
|
||||
{
|
||||
return categoryMapping.Select(x => x.TrackerCategory).ToList();
|
||||
}
|
||||
|
||||
protected void AddCategoryMapping(string trackerCategory, TorznabCategory newznabCategory, string trackerCategoryDesc = null)
|
||||
{
|
||||
categoryMapping.Add(new CategoryMapping(trackerCategory, trackerCategoryDesc, newznabCategory.ID));
|
||||
|
|
Loading…
Reference in New Issue