|
|
|
@ -80,13 +80,13 @@ 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),
|
|
|
|
|
r.Category == null ? null : from c in r.Category select new XElement("category", c.Id),
|
|
|
|
|
r.Categories == null ? null : from c in r.Categories select new XElement("category", c.Id),
|
|
|
|
|
new XElement(
|
|
|
|
|
"enclosure",
|
|
|
|
|
new XAttribute("url", r.DownloadUrl ?? t.MagnetUrl ?? string.Empty),
|
|
|
|
|
r.Size == null ? null : new XAttribute("length", r.Size),
|
|
|
|
|
new XAttribute("type", protocol == DownloadProtocol.Torrent ? "application/x-bittorrent" : "application/x-nzb")),
|
|
|
|
|
r.Category == null ? null : from c in r.Category select GetNabElement("category", c.Id, protocol),
|
|
|
|
|
r.Categories == null ? null : from c in r.Categories select GetNabElement("category", c.Id, protocol),
|
|
|
|
|
r.IndexerFlags == null ? null : from f in r.IndexerFlags select GetNabElement("tag", f.Name, protocol),
|
|
|
|
|
GetNabElement("rageid", r.TvRageId, protocol),
|
|
|
|
|
GetNabElement("thetvdb", r.TvdbId, protocol),
|
|
|
|
|