mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-05-01 09:10:50 +02:00
Parse description in RSS Parser
This commit is contained in:
parent
75c30dd318
commit
c6db30c35a
1 changed files with 6 additions and 0 deletions
|
|
@ -161,6 +161,7 @@ protected virtual ReleaseInfo ProcessItem(XElement item, ReleaseInfo releaseInfo
|
|||
{
|
||||
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 @@ protected virtual string GetTitle(XElement item)
|
|||
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…
Reference in a new issue