mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
EpisodesWithFiles now returns the full series object, instead of just the SeriesTitle (So we don't need to add junk to the Episode class)
This commit is contained in:
parent
421ba466a8
commit
0a65e85e21
6 changed files with 46 additions and 30 deletions
|
@ -177,7 +177,7 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
public virtual IList<Episode> EpisodesWithFiles()
|
||||
{
|
||||
var episodes = _database.Fetch<Episode, EpisodeFile>(@"SELECT Episodes.*, Series.Title as SeriesTitle, EpisodeFiles.* FROM Episodes
|
||||
var episodes = _database.Fetch<Episode, Series, EpisodeFile>(@"SELECT Episodes.*, Series.*, EpisodeFiles.* FROM Episodes
|
||||
INNER JOIN Series ON Episodes.SeriesId = Series.SeriesId
|
||||
INNER JOIN EpisodeFiles ON Episodes.EpisodeFileId = EpisodeFiles.EpisodeFileId");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue