2013-04-07 10:30:37 +03:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Indexers
|
|
|
|
{
|
2013-04-11 02:44:48 +03:00
|
|
|
public abstract class Indexer : IIndexerBase
|
2013-04-07 10:30:37 +03:00
|
|
|
{
|
|
|
|
|
2013-04-11 02:44:48 +03:00
|
|
|
public abstract string Name { get; }
|
2013-04-07 10:30:37 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public virtual bool EnabledByDefault
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
2013-04-28 03:25:28 +03:00
|
|
|
return true;
|
2013-04-07 10:30:37 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public virtual IParseFeed Parser
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return new BasicRssParser();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-11 02:44:48 +03:00
|
|
|
public virtual bool IsConfigured
|
2013-04-07 10:30:37 +03:00
|
|
|
{
|
2013-04-11 02:44:48 +03:00
|
|
|
get { return true; }
|
2013-04-07 10:30:37 +03:00
|
|
|
}
|
|
|
|
|
2013-04-11 02:44:48 +03:00
|
|
|
|
|
|
|
|
2013-04-07 10:30:37 +03:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|