2013-04-07 07:30:37 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Indexers
|
|
|
|
{
|
2013-05-02 01:59:09 +00:00
|
|
|
public abstract class IndexerBase : IIndexer
|
2013-04-07 07:30:37 +00:00
|
|
|
{
|
2013-04-10 23:44:48 +00:00
|
|
|
public abstract string Name { get; }
|
2013-04-07 07:30:37 +00:00
|
|
|
|
2013-05-02 01:59:09 +00:00
|
|
|
public IndexerDefinition InstanceDefinition { get; set; }
|
2013-04-07 07:30:37 +00:00
|
|
|
|
2013-05-02 01:59:09 +00:00
|
|
|
public virtual IEnumerable<IndexerDefinition> DefaultDefinitions
|
2013-04-07 07:30:37 +00:00
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
2013-05-02 01:59:09 +00:00
|
|
|
yield return new IndexerDefinition
|
|
|
|
{
|
|
|
|
Name = Name,
|
|
|
|
Enable = true,
|
|
|
|
Implementation = GetType().Name,
|
2013-05-19 23:17:32 +00:00
|
|
|
Settings = String.Empty
|
2013-05-02 01:59:09 +00:00
|
|
|
};
|
2013-04-07 07:30:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public virtual IParseFeed Parser
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return new BasicRssParser();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public abstract IEnumerable<string> RecentFeed { get; }
|
|
|
|
public abstract IEnumerable<string> GetEpisodeSearchUrls(string seriesTitle, int seasonNumber, int episodeNumber);
|
|
|
|
public abstract IEnumerable<string> GetDailyEpisodeSearchUrls(string seriesTitle, DateTime date);
|
|
|
|
public abstract IEnumerable<string> GetSeasonSearchUrls(string seriesTitle, int seasonNumber);
|
|
|
|
public abstract IEnumerable<string> GetPartialSeasonSearchUrls(string seriesTitle, int seasonNumber, int episodeWildcard);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|