mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
EpisodesWithoutFiles now skips ignored episodes, Tests updated.
This commit is contained in:
parent
4f68d07c9a
commit
412a3fc476
2 changed files with 19 additions and 5 deletions
|
@ -162,7 +162,7 @@ namespace NzbDrone.Core.Providers
|
|||
var episodes = _database.Query<Episode, Series>(@"SELECT Episodes.*, Series.Title FROM Episodes
|
||||
INNER JOIN Series
|
||||
ON Episodes.SeriesId = Series.SeriesId
|
||||
WHERE (EpisodeFileId=0 OR EpisodeFileId=NULL) AND AirDate<=@0",
|
||||
WHERE (EpisodeFileId=0 OR EpisodeFileId=NULL) AND Ignored = 0 AND AirDate<=@0",
|
||||
DateTime.Now.Date);
|
||||
if (!includeSpecials)
|
||||
return episodes.Where(e => e.SeasonNumber > 0).ToList();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue