mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 05:47:22 -04: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 @@ 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…
Add table
Add a link
Reference in a new issue