mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Added NzbInfoUrl to indexers.
This commit is contained in:
parent
ce0a6f8b86
commit
b314ff5e82
13 changed files with 113 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue