Parse description in RSS Parser

pull/1889/head
Bogdan 8 months ago
parent 75c30dd318
commit c6db30c35a

@ -161,6 +161,7 @@ namespace NzbDrone.Core.Indexers
{
releaseInfo.Guid = GetGuid(item);
releaseInfo.Title = GetTitle(item);
releaseInfo.Description = GetDescription(item);
releaseInfo.PublishDate = GetPublishDate(item);
releaseInfo.DownloadUrl = GetDownloadUrl(item);
releaseInfo.InfoUrl = GetInfoUrl(item);
@ -195,6 +196,11 @@ namespace NzbDrone.Core.Indexers
return item.TryGetValue("title", "Unknown");
}
protected virtual string GetDescription(XElement item)
{
return item.TryGetValue("description", null);
}
protected virtual ICollection<IndexerCategory> GetCategory(XElement item)
{
return new List<IndexerCategory> { NewznabStandardCategory.Other };

Loading…
Cancel
Save