mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
* Core: Categories are stored in a real tree * Sorting: First Torznab categories sorted by Id and then custom cats sorted by Name * Filtering: Results with child category are not removed when searching by parent category. Details in #8049 * Jacket UI: Add parent category when at least one child category exists * Torznab (caps): Remove non existent children categories. Remove duplicated categories. Details in #10006
This commit is contained in:
@@ -250,7 +250,7 @@ namespace Jackett.Common.Models
|
||||
new XAttribute("available", MusicSearchAvailable ? "yes" : "no"),
|
||||
new XAttribute("supportedParams", SupportedMusicSearchParams())
|
||||
),
|
||||
// inconsistend but apparently already used by various newznab indexers (see #1896)
|
||||
// inconsistent but apparently already used by various newznab indexers (see #1896)
|
||||
new XElement("audio-search",
|
||||
new XAttribute("available", MusicSearchAvailable ? "yes" : "no"),
|
||||
new XAttribute("supportedParams", SupportedMusicSearchParams())
|
||||
@@ -261,7 +261,7 @@ namespace Jackett.Common.Models
|
||||
)
|
||||
),
|
||||
new XElement("categories",
|
||||
from c in Categories.GetTorznabCategories().OrderBy(x => x.ID < 100000 ? "z" + x.ID.ToString() : x.Name)
|
||||
from c in Categories.GetTorznabCategoryTree(true)
|
||||
select new XElement("category",
|
||||
new XAttribute("id", c.ID),
|
||||
new XAttribute("name", c.Name),
|
||||
|
Reference in New Issue
Block a user