mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-26 22:46:37 -04:00
Added NzbInfoUrl to indexers.
This commit is contained in:
@@ -97,6 +97,13 @@ namespace NzbDrone.Core.Providers.Indexer
|
||||
/// <returns>Download link URL</returns>
|
||||
protected abstract string NzbDownloadUrl(SyndicationItem item);
|
||||
|
||||
/// <summary>
|
||||
/// Generates link to the NZB info at the indexer
|
||||
/// </summary>
|
||||
/// <param name = "item">RSS Feed item to generate the link for</param>
|
||||
/// <returns>Nzb Info URL</returns>
|
||||
protected abstract string NzbInfoUrl(SyndicationItem item);
|
||||
|
||||
/// <summary>
|
||||
/// Fetches RSS feed and process each news item.
|
||||
/// </summary>
|
||||
@@ -191,6 +198,7 @@ namespace NzbDrone.Core.Providers.Indexer
|
||||
if (parsedEpisode != null)
|
||||
{
|
||||
parsedEpisode.NzbUrl = NzbDownloadUrl(item);
|
||||
parsedEpisode.NzbInfoUrl = NzbInfoUrl(item);
|
||||
parsedEpisode.Indexer = Name;
|
||||
result.Add(parsedEpisode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user