Fixed: Suppress warning log messages when unable to parse non-video files

This commit is contained in:
Mark McDowall 2016-09-20 20:40:53 -07:00
parent bf8d68a873
commit e6288148ad
2 changed files with 6 additions and 6 deletions

View File

@ -279,12 +279,6 @@ namespace NzbDrone.Core.Parser
result = ParseTitle(fileInfo.Directory.Name + fileInfo.Extension); result = ParseTitle(fileInfo.Directory.Name + fileInfo.Extension);
} }
if (result == null)
{
Logger.Warn("Unable to parse episode info from path {0}", path);
return null;
}
return result; return result;
} }

View File

@ -6,6 +6,7 @@ using NLog;
using NzbDrone.Common.Extensions; using NzbDrone.Common.Extensions;
using NzbDrone.Core.DataAugmentation.Scene; using NzbDrone.Core.DataAugmentation.Scene;
using NzbDrone.Core.IndexerSearch.Definitions; using NzbDrone.Core.IndexerSearch.Definitions;
using NzbDrone.Core.MediaFiles;
using NzbDrone.Core.Parser.Model; using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Tv; using NzbDrone.Core.Tv;
@ -73,6 +74,11 @@ namespace NzbDrone.Core.Parser
if (parsedEpisodeInfo == null) if (parsedEpisodeInfo == null)
{ {
if (MediaFileExtensions.Extensions.Contains(Path.GetExtension(filename)))
{
_logger.Warn("Unable to parse episode info from path {0}", filename);
}
return null; return null;
} }