mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
core: move categories code into a new class (#10005)
This commit is contained in:
@@ -51,11 +51,11 @@ namespace Jackett.Common.Models.DTO
|
||||
site_link = indexer.SiteLink;
|
||||
language = indexer.Language;
|
||||
last_error = indexer.LastError;
|
||||
potatoenabled = indexer.TorznabCaps.Categories.Any(i => TorznabCatType.Movies.Contains(i));
|
||||
potatoenabled = indexer.TorznabCaps.Categories.GetTorznabCategories().Any(i => TorznabCatType.Movies.Contains(i));
|
||||
|
||||
alternativesitelinks = indexer.AlternativeSiteLinks;
|
||||
|
||||
caps = indexer.TorznabCaps.Categories
|
||||
caps = indexer.TorznabCaps.Categories.GetTorznabCategories()
|
||||
.GroupBy(p => p.ID)
|
||||
.Select(g => g.First())
|
||||
.OrderBy(c => c.ID < 100000 ? "z" + c.ID.ToString() : c.Name)
|
||||
|
Reference in New Issue
Block a user