Add GetAllTrackerCategories()

This commit is contained in:
kaso17 2017-02-02 12:58:23 +01:00
parent 80d29343a5
commit e088f1e960
1 changed files with 5 additions and 0 deletions

View File

@ -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));