mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-31 04:00:18 -07:00
Progress messages are logged with Logger.Progress
This commit is contained in:
parent
a7eb331d4e
commit
c184ec2d98
20 changed files with 166 additions and 90 deletions
|
@ -3,6 +3,7 @@ using System.IO;
|
|||
using System.Linq;
|
||||
using NLog;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Common.Instrumentation;
|
||||
using NzbDrone.Common.Messaging;
|
||||
using NzbDrone.Core.MediaFiles.Commands;
|
||||
using NzbDrone.Core.MediaFiles.EpisodeImport;
|
||||
|
@ -52,6 +53,7 @@ namespace NzbDrone.Core.MediaFiles
|
|||
|
||||
private void Scan(Series series)
|
||||
{
|
||||
_logger.Progress("Starting disk scan for {0}", series.Title);
|
||||
_messageAggregator.PublishCommand(new CleanMediaFileDb(series.Id));
|
||||
|
||||
if (!_diskProvider.FolderExists(series.Path))
|
||||
|
@ -64,6 +66,8 @@ namespace NzbDrone.Core.MediaFiles
|
|||
|
||||
var decisions = _importDecisionMaker.GetImportDecisions(mediaFileList, series, false);
|
||||
_importApprovedEpisodes.Import(decisions);
|
||||
|
||||
_logger.Complete("Completed disk scan for {0}", series.Title);
|
||||
}
|
||||
|
||||
public string[] GetVideoFiles(string path, bool allDirectories = true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue