Fixed: Movies not getting unmonitored when folder gets deleted (#2588)

Fixes #1191, fixes #1590
This commit is contained in:
Simon Chapman 2018-03-04 14:24:07 +00:00 committed by Leonardo Galli
parent b83f2ca0ee
commit 55dde613c2
1 changed files with 1 additions and 6 deletions

View File

@ -165,12 +165,7 @@ namespace NzbDrone.Core.MediaFiles
if (movie.MovieFileId != 0)
{
//Since there is no folder, there can't be any files right?
// Delete Movie from MovieFiles
_movieFileRepository.Delete(movie.MovieFileId);
// Update Movie
movie.MovieFileId = 0;
_movieService.UpdateMovie(movie);
_mediaFileTableCleanupService.Clean(movie, new List<string>());
_logger.Debug("Movies folder doesn't exist: {0}", movie.Path);
}