No longer setting AirDate to null if it aired before series start date
This was causing an issue which is caused by bad data coming from trakt...
This commit is contained in:
parent
e1f2b0da69
commit
9b80478f6f
|
@ -144,8 +144,6 @@ namespace NzbDrone.Core.Tv
|
|||
episodeToUpdate.Overview = episode.Overview;
|
||||
episodeToUpdate.AirDate = episode.AirDate;
|
||||
|
||||
if (episodeToUpdate.AirDate < series.FirstAired) episodeToUpdate.AirDate = null;
|
||||
|
||||
successCount++;
|
||||
}
|
||||
catch (Exception e)
|
||||
|
@ -201,7 +199,7 @@ namespace NzbDrone.Core.Tv
|
|||
/* private void DeleteEpisodesNotAvailableAnymore(Series series, IEnumerable<Episode> onlineEpisodes)
|
||||
{
|
||||
//Todo: This will not work as currently implemented - what are we trying to do here?
|
||||
* //We were trying to remove episodes that were once on tvdb but were removed, for whatever reason, instead of polluting our DB with them.
|
||||
//Todo: We were trying to remove episodes that were once on tvdb but were removed, for whatever reason, instead of polluting our DB with them.
|
||||
return;
|
||||
_logger.Trace("Starting deletion of episodes that no longer exist in TVDB: {0}", series.Title.WithDefault(series.Id));
|
||||
foreach (var episode in onlineEpisodes)
|
||||
|
|
|
@ -96,7 +96,7 @@ namespace NzbDrone.Core.Tv
|
|||
series.QualityProfileId = edited.QualityProfileId;
|
||||
series.Monitored = edited.Monitored;
|
||||
series.SeasonFolder = edited.SeasonFolder;
|
||||
//series.Path = edited.Path;
|
||||
series.Path = edited.Path;
|
||||
series.CustomStartDate = edited.CustomStartDate;
|
||||
|
||||
_seriesRepository.Update(series);
|
||||
|
@ -109,7 +109,6 @@ namespace NzbDrone.Core.Tv
|
|||
return _seriesRepository.FindByTvdbId(tvdbId);
|
||||
}
|
||||
|
||||
|
||||
public Series FindBySlug(string slug)
|
||||
{
|
||||
var series = _seriesRepository.FindBySlug(slug);
|
||||
|
|
Loading…
Reference in New Issue