rewrite of indexer/episode search

This commit is contained in:
kay.one
2013-04-07 00:30:37 -07:00
parent 9ae21cf7a1
commit a6a4932b44
114 changed files with 2045 additions and 5577 deletions
@@ -0,0 +1,23 @@
using System.Collections.Generic;
using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.Indexers.Newznab
{
public interface INewznabRepository : IBasicRepository<NewznabDefinition>
{
IEnumerable<NewznabDefinition> Enabled();
}
public class NewznabRepository : BasicRepository<NewznabDefinition>, INewznabRepository
{
public NewznabRepository(IDatabase database)
: base(database)
{
}
public IEnumerable<NewznabDefinition> Enabled()
{
return Query.Where(n => n.Enable);
}
}
}