Added NzbInfoUrl to indexers.

This commit is contained in:
Mark McDowall 2012-05-02 12:02:39 -07:00
commit b314ff5e82
13 changed files with 113 additions and 4 deletions

View file

@ -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);
}