You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace NzbDrone.Core.Indexers
|
|
{
|
|
public abstract class IndexerBase : IIndexer
|
|
{
|
|
public abstract string Name { get; }
|
|
|
|
public virtual bool EnableByDefault { get { return true; } }
|
|
|
|
public IndexerDefinition InstanceDefinition { get; set; }
|
|
|
|
public virtual IEnumerable<IndexerDefinition> DefaultDefinitions
|
|
{
|
|
get
|
|
{
|
|
yield return new IndexerDefinition
|
|
{
|
|
Name = Name,
|
|
Enable = EnableByDefault,
|
|
Implementation = GetType().Name,
|
|
Settings = String.Empty
|
|
};
|
|
}
|
|
}
|
|
|
|
public virtual IParseFeed Parser { get; private set; }
|
|
|
|
public abstract IEnumerable<string> RecentFeed { get; }
|
|
public abstract IEnumerable<string> GetEpisodeSearchUrls(string seriesTitle, int tvRageId, int seasonNumber, int episodeNumber);
|
|
public abstract IEnumerable<string> GetDailyEpisodeSearchUrls(string seriesTitle, int tvRageId, DateTime date);
|
|
public abstract IEnumerable<string> GetSeasonSearchUrls(string seriesTitle, int tvRageId, int seasonNumber, int offset);
|
|
}
|
|
} |