From 4b7ee3cb9e3df7863e50779e028b2700556d3428 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 28 Apr 2015 07:13:11 -0700 Subject: [PATCH] Fixed: Monitoring options not be applied when adding a new series to an empty root folder --- src/NzbDrone.Core/MediaFiles/DiskScanService.cs | 1 + src/NzbDrone.Core/MediaFiles/Events/SeriesScanSkippedEvent.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/NzbDrone.Core/MediaFiles/DiskScanService.cs b/src/NzbDrone.Core/MediaFiles/DiskScanService.cs index 8e236fb1b..23daed588 100644 --- a/src/NzbDrone.Core/MediaFiles/DiskScanService.cs +++ b/src/NzbDrone.Core/MediaFiles/DiskScanService.cs @@ -75,6 +75,7 @@ public void Scan(Series series) if (_diskProvider.GetDirectories(rootFolder).Empty()) { _logger.Warn("Series' root folder ({0}) is empty.", rootFolder); + _eventAggregator.PublishEvent(new SeriesScanSkippedEvent(series, SeriesScanSkippedReason.RootFolderIsEmpty)); return; } diff --git a/src/NzbDrone.Core/MediaFiles/Events/SeriesScanSkippedEvent.cs b/src/NzbDrone.Core/MediaFiles/Events/SeriesScanSkippedEvent.cs index 1d4abd073..47e8976c5 100644 --- a/src/NzbDrone.Core/MediaFiles/Events/SeriesScanSkippedEvent.cs +++ b/src/NzbDrone.Core/MediaFiles/Events/SeriesScanSkippedEvent.cs @@ -18,6 +18,7 @@ public SeriesScanSkippedEvent(Series series, SeriesScanSkippedReason reason) public enum SeriesScanSkippedReason { RootFolderDoesNotExist, + RootFolderIsEmpty, SeriesFolderDoesNotExist } }