mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-22 05:50:56 +00:00
Fixed: Monitoring options not be applied when adding a new series to an empty root folder
This commit is contained in:
parent
27246de623
commit
4b7ee3cb9e
2 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,7 @@ public void Scan(Series series)
|
||||||
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 @@ public SeriesScanSkippedEvent(Series series, SeriesScanSkippedReason reason)
|
||||||
public enum SeriesScanSkippedReason
|
public enum SeriesScanSkippedReason
|
||||||
{
|
{
|
||||||
RootFolderDoesNotExist,
|
RootFolderDoesNotExist,
|
||||||
|
RootFolderIsEmpty,
|
||||||
SeriesFolderDoesNotExist
|
SeriesFolderDoesNotExist
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue