1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-26 17:47:08 +00:00

Fixed Series/Details Quality column.

This commit is contained in:
Mark McDowall 2012-02-24 16:53:01 -08:00
parent 991ba4ff0a
commit 01746a06e0
2 changed files with 5 additions and 1 deletions

View file

@ -9,7 +9,7 @@ namespace NzbDrone.Core.Datastore.PetaPoco
public class EpisodeSeasonRelator
{
public Season _current;
public Season MapIt(Season season, Episode episode)
public Season MapIt(Season season, Episode episode, EpisodeFile episodeFile)
{
// Terminating call. Since we can return null from this function
// we need to be ready for PetaPoco to callback later with null
@ -17,6 +17,10 @@ public Season MapIt(Season season, Episode episode)
if (season == null)
return _current;
//Todo: Find a Query that doesn't require this check
//Map EpisodeFile to Episode (Map to null if 0, because PetaPoco is returning a POCO when it should be null)
episode.EpisodeFile = (episode.EpisodeFileId == 0 ? null : episodeFile);
// Is this the same season as the current one we're processing
if (_current != null && _current.SeasonId == season.SeasonId)
{