Add new series won't create a folder

EpisodeFile DB cleanup happens even when series folder is missing
This commit is contained in:
Mark McDowall 2013-07-11 18:47:22 -07:00
commit 40962aca1d
3 changed files with 9 additions and 12 deletions

View file

@ -90,9 +90,7 @@ namespace NzbDrone.Core.Tv
var successCount = 0;
var failCount = 0;
var seriesEpisodes = _episodeService.GetEpisodeBySeries(series.Id);
var seasons = _seasonRepository.GetSeasonBySeries(series.Id);
var updateList = new List<Episode>();
@ -203,6 +201,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.
return;
_logger.Trace("Starting deletion of episodes that no longer exist in TVDB: {0}", series.Title.WithDefault(series.Id));
foreach (var episode in onlineEpisodes)