1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-10-26 22:52:40 +02:00

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

View File

@ -165,12 +165,7 @@ public void Scan(Movie movie)
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);
}