1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

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 @@ public static ParsedEpisodeInfo ParsePath(string path)
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 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 @@ public LocalEpisode GetLocalEpisode(string filename, Series series, ParsedEpisod
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;
} }