@ -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 . Categor y = = null ? null : from c in r . Categor y select new XElement ( "category" , c . Id ) ,
r . Categor ies = = null ? null : from c in r . Categor ies 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 . Categor y = = null ? null : from c in r . Categor y select GetNabElement ( "category" , c . Id , protocol ) ,
r . Categor ies = = null ? null : from c in r . Categor ies 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 ) ,