torznab: add tracker type to results. resolves #12963

This commit is contained in:
ilike2burnthing 2022-02-23 01:04:23 +00:00 committed by GitHub
parent 8cc85a9253
commit 029e9adaaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,8 @@ namespace Jackett.Common.Models
new XElement("title", RemoveInvalidXMLChars(r.Title)),
new XElement("guid", r.Guid.AbsoluteUri), // GUID and (Link or Magnet) are mandatory
new XElement("jackettindexer", new XAttribute("id", r.Origin.Id), r.Origin.DisplayName),
r.Details == null ? null : new XElement("details", r.Details.AbsoluteUri),
new XElement("type", r.Origin.Type),
r.Details == null ? null : new XElement("comments", r.Details.AbsoluteUri),
r.PublishDate == DateTime.MinValue ? new XElement("pubDate", XmlDateFormat(DateTime.Now)) : new XElement("pubDate", XmlDateFormat(r.PublishDate)),
r.Size == null ? null : new XElement("size", r.Size),
r.Files == null ? null : new XElement("files", r.Files),