Sort limits in IndexerCapabilities

This commit is contained in:
Bogdan 2023-06-13 06:41:06 +03:00
parent d21debe77f
commit ef0f8e25fd

View file

@ -455,10 +455,10 @@ namespace NzbDrone.Core.Indexers
new XElement("caps",
new XElement("server",
new XAttribute("title", "Prowlarr")),
LimitsMax != null || LimitsDefault != null ?
LimitsDefault != null || LimitsMax != null ?
new XElement("limits",
LimitsMax != null ? new XAttribute("max", LimitsMax) : null,
LimitsDefault != null ? new XAttribute("default", LimitsDefault) : null)
LimitsDefault != null ? new XAttribute("default", LimitsDefault) : null,
LimitsMax != null ? new XAttribute("max", LimitsMax) : null)
: null,
new XElement("searching",
new XElement("search",