mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
moved series/season/episodes to object db.
This commit is contained in:
parent
4504232956
commit
b5644bf660
93 changed files with 1025 additions and 1338 deletions
|
@ -9,7 +9,7 @@ namespace NzbDrone.Core.Tv
|
|||
{
|
||||
bool SeriesPathExists(string path);
|
||||
List<Series> Search(string title);
|
||||
Series Get(string cleanTitle);
|
||||
Series GetByTitle(string cleanTitle);
|
||||
}
|
||||
|
||||
public class SeriesRepository : BasicRepository<Series>, ISeriesRepository
|
||||
|
@ -29,7 +29,7 @@ namespace NzbDrone.Core.Tv
|
|||
return Queryable.Where(s => s.Title.Contains(title)).ToList();
|
||||
}
|
||||
|
||||
public Series Get(string cleanTitle)
|
||||
public Series GetByTitle(string cleanTitle)
|
||||
{
|
||||
return Queryable.SingleOrDefault(s => s.CleanTitle.Equals(cleanTitle));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue