|
|
|
@ -15,6 +15,7 @@ namespace NzbDrone.Core.NetImport.ImportExclusions
|
|
|
|
|
public interface IImportExclusionsRepository : IBasicRepository<ImportExclusion>
|
|
|
|
|
{
|
|
|
|
|
bool IsMovieExcluded(int tmdbid);
|
|
|
|
|
ImportExclusion GetByTmdbid(int tmdbid);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ImportExclusionsRepository : BasicRepository<ImportExclusion>, IImportExclusionsRepository
|
|
|
|
@ -31,5 +32,10 @@ namespace NzbDrone.Core.NetImport.ImportExclusions
|
|
|
|
|
{
|
|
|
|
|
return Query.Where(ex => ex.TmdbId == tmdbid).Any();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ImportExclusion GetByTmdbid(int tmdbid)
|
|
|
|
|
{
|
|
|
|
|
return Query.Where(ex => ex.TmdbId == tmdbid).First();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|