mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
IndexerType added, this will store the source indexer in history, so users can see (if they care) and we can add an icon if we want.
This commit is contained in:
@@ -49,7 +49,6 @@ namespace NzbDrone.Core.Providers.Indexer
|
||||
/// </summary>
|
||||
protected abstract string[] Urls { get; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets the credential.
|
||||
/// </summary>
|
||||
@@ -58,7 +57,6 @@ namespace NzbDrone.Core.Providers.Indexer
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
|
||||
public IndexerSetting Settings
|
||||
{
|
||||
get
|
||||
@@ -189,7 +187,8 @@ namespace NzbDrone.Core.Providers.Indexer
|
||||
EpisodeId = episode.EpisodeId,
|
||||
IsProper = parseResult.Proper,
|
||||
NzbTitle = feedItem.Title.Text,
|
||||
Quality = parseResult.Quality
|
||||
Quality = parseResult.Quality,
|
||||
Indexer = GetIndexerType()
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -246,6 +245,15 @@ namespace NzbDrone.Core.Providers.Indexer
|
||||
/// <returns>Download link URL</returns>
|
||||
protected abstract string NzbDownloadUrl(SyndicationItem item);
|
||||
|
||||
/// <summary>
|
||||
/// Gets he IndexerType Enum for this indexer
|
||||
/// </summary>
|
||||
/// <returns>IndexerType Enum</returns>
|
||||
protected virtual IndexerType GetIndexerType()
|
||||
{
|
||||
return IndexerType.Other;
|
||||
}
|
||||
|
||||
private bool InHistory(IList<Episode> episodes, EpisodeParseResult parseResult, SyndicationItem feedItem)
|
||||
{
|
||||
foreach (var episode in episodes)
|
||||
|
||||
Reference in New Issue
Block a user