History stores SeriesId now

This commit is contained in:
Mark McDowall 2013-05-13 22:47:53 -07:00
parent 30a24fd0b4
commit cdc9098ac7
4 changed files with 1 additions and 6 deletions

View File

@ -17,9 +17,6 @@ namespace NzbDrone.Core.History
public string NzbInfoUrl { get; set; }
public string ReleaseGroup { get; set; }
// public LazyLoaded<Episode> Episode { get; set; }
// public LazyLoaded<Series> Series { get; set; }
public Episode Episode { get; set; }
public Series Series { get; set; }
}

View File

@ -29,7 +29,6 @@ namespace NzbDrone.Core.History
Delete(c=> c.Date < cutoff);
}
public List<QualityModel> GetBestQualityInHistory(int episodeId)
{
var history = Query.Where(c => c.EpisodeId == episodeId);

View File

@ -64,6 +64,7 @@ namespace NzbDrone.Core.History
Indexer = message.Episode.Report.Indexer,
Quality = message.Episode.ParsedEpisodeInfo.Quality,
NzbTitle = message.Episode.Report.Title,
SeriesId = episode.SeriesId,
EpisodeId = episode.Id,
NzbInfoUrl = message.Episode.Report.NzbInfoUrl,
ReleaseGroup = message.Episode.Report.ReleaseGroup,

View File

@ -45,8 +45,6 @@ namespace NzbDrone.Core.Indexers
.ThenBy(c => c.Episodes.Select(e => e.EpisodeNumber).MinOrDefault())
.ThenBy(c => c.Report.Age);
foreach (var episodeParseResult in qualifiedReports)
{
try