Fixed: Monitoring options not be applied when adding a new series to an empty root folder

pull/2/head
Mark McDowall 10 years ago
parent 27246de623
commit 4b7ee3cb9e

@ -75,6 +75,7 @@ namespace NzbDrone.Core.MediaFiles
if (_diskProvider.GetDirectories(rootFolder).Empty()) if (_diskProvider.GetDirectories(rootFolder).Empty())
{ {
_logger.Warn("Series' root folder ({0}) is empty.", rootFolder); _logger.Warn("Series' root folder ({0}) is empty.", rootFolder);
_eventAggregator.PublishEvent(new SeriesScanSkippedEvent(series, SeriesScanSkippedReason.RootFolderIsEmpty));
return; return;
} }

@ -18,6 +18,7 @@ namespace NzbDrone.Core.MediaFiles.Events
public enum SeriesScanSkippedReason public enum SeriesScanSkippedReason
{ {
RootFolderDoesNotExist, RootFolderDoesNotExist,
RootFolderIsEmpty,
SeriesFolderDoesNotExist SeriesFolderDoesNotExist
} }
} }

Loading…
Cancel
Save