Parse description in RSS Parser

pull/1889/head
Bogdan 1 year ago
parent 75c30dd318
commit c6db30c35a

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

Loading…
Cancel
Save