add t=indexers for meta indexers

This commit is contained in:
kaso17
2018-04-06 17:43:18 +02:00
parent 66289cb3f3
commit b26e287a62
4 changed files with 51 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ namespace Jackett.Common.Models
return supportsCategory;
}
public string ToXml()
public XDocument GetXDocument()
{
var xdoc = new XDocument(
new XDeclaration("1.0", "UTF-8", null),
@@ -144,6 +144,12 @@ namespace Jackett.Common.Models
)
)
);
return xdoc;
}
public string ToXml()
{
var xdoc = GetXDocument();
return xdoc.Declaration.ToString() + Environment.NewLine + xdoc.ToString();
}