|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Xml.Linq;
|
|
|
|
using System.Xml.Linq;
|
|
|
|
using NzbDrone.Core.Parser.Model;
|
|
|
|
using NzbDrone.Core.Parser.Model;
|
|
|
|
|
|
|
|
using System.Globalization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Indexers.Newznab
|
|
|
|
namespace NzbDrone.Core.Indexers.Newznab
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -19,6 +20,21 @@ namespace NzbDrone.Core.Indexers.Newznab
|
|
|
|
return item.Comments().Replace("#comments", "");
|
|
|
|
return item.Comments().Replace("#comments", "");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override DateTime GetPublishDate(XElement item)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var attributes = item.Elements("attr").ToList();
|
|
|
|
|
|
|
|
var usenetdateElement = attributes.SingleOrDefault(e => e.Attribute("name").Value.Equals("usenetdate", StringComparison.CurrentCultureIgnoreCase));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (usenetdateElement != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var dateString = usenetdateElement.Attribute("value").Value;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return XElementExtensions.ParseDate(dateString);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return base.GetPublishDate(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override long GetSize(XElement item)
|
|
|
|
protected override long GetSize(XElement item)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var attributes = item.Elements("attr").ToList();
|
|
|
|
var attributes = item.Elements("attr").ToList();
|
|
|
|