|
|
|
@ -85,7 +85,7 @@ namespace NzbDrone.Core.IndexerSearch
|
|
|
|
|
r.InfoUrl == null ? null : new XElement("comments", r.InfoUrl),
|
|
|
|
|
r.PublishDate == DateTime.MinValue ? new XElement("pubDate", XmlDateFormat(DateTime.Now)) : new XElement("pubDate", XmlDateFormat(r.PublishDate)),
|
|
|
|
|
new XElement("size", r.Size),
|
|
|
|
|
new XElement("link", r.DownloadUrl ?? t.MagnetUrl ?? string.Empty),
|
|
|
|
|
new XElement("link", r.DownloadUrl ?? string.Empty),
|
|
|
|
|
r.Categories == null ? null : from c in r.Categories select new XElement("category", c.Id),
|
|
|
|
|
new XElement(
|
|
|
|
|
"enclosure",
|
|
|
|
@ -115,6 +115,7 @@ namespace NzbDrone.Core.IndexerSearch
|
|
|
|
|
GetNabElement("label", RemoveInvalidXMLChars(r.Label), protocol),
|
|
|
|
|
GetNabElement("track", RemoveInvalidXMLChars(r.Track), protocol),
|
|
|
|
|
GetNabElement("infohash", RemoveInvalidXMLChars(t.InfoHash), protocol),
|
|
|
|
|
GetNabElement("magneturl", t.MagnetUrl, protocol),
|
|
|
|
|
GetNabElement("minimumratio", t.MinimumRatio, protocol),
|
|
|
|
|
GetNabElement("minimumseedtime", t.MinimumSeedTime, protocol),
|
|
|
|
|
GetNabElement("downloadvolumefactor", t.DownloadVolumeFactor, protocol),
|
|
|
|
|