mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-02-06 11:50:56 +02:00
Metadata won't be created when there no imported files
This commit is contained in:
parent
ff23b883a6
commit
a48dbba015
@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using NLog;
|
using NLog;
|
||||||
using Ninject;
|
using Ninject;
|
||||||
@ -83,7 +84,8 @@ namespace NzbDrone.Core.Providers
|
|||||||
importedFiles.ForEach(file => _diskScanProvider.MoveEpisodeFile(file, true));
|
importedFiles.ForEach(file => _diskScanProvider.MoveEpisodeFile(file, true));
|
||||||
|
|
||||||
//Create Metadata for all the episode files found
|
//Create Metadata for all the episode files found
|
||||||
_metadataProvider.CreateForEpisodeFiles(importedFiles);
|
if (importedFiles.Any())
|
||||||
|
_metadataProvider.CreateForEpisodeFiles(importedFiles);
|
||||||
|
|
||||||
//Delete the folder only if folder is small enough
|
//Delete the folder only if folder is small enough
|
||||||
if (_diskProvider.GetDirectorySize(subfolderInfo.FullName) < Constants.IgnoreFileSize)
|
if (_diskProvider.GetDirectorySize(subfolderInfo.FullName) < Constants.IgnoreFileSize)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user