Updated file scan logging

pull/6/head
kay.one 14 years ago
parent 6d085d5340
commit b4ea8838d2

@ -27,10 +27,10 @@ namespace NzbDrone.Core.Model
public override string ToString() public override string ToString()
{ {
if (Episodes == null) if (Episodes == null)
return string.Format("Series:{0} Air Date:{1}", CleanTitle, AirDate.Date); return string.Format("{0} - {1}", CleanTitle, AirDate.Date);
return string.Format("Series:{0} Season:{1} Episode:{2}", CleanTitle, SeasonNumber, return string.Format("{0} - S{1:00}E{2}", CleanTitle, SeasonNumber,
String.Join(",", Episodes)); String.Join("-", Episodes));
} }
} }

@ -72,6 +72,7 @@ namespace NzbDrone.Core.Providers
if (!_repository.Exists<EpisodeFile>(e => e.Path == Parser.NormalizePath(filePath))) if (!_repository.Exists<EpisodeFile>(e => e.Path == Parser.NormalizePath(filePath)))
{ {
var parseResult = Parser.ParseEpisodeInfo(filePath); var parseResult = Parser.ParseEpisodeInfo(filePath);
parseResult.CleanTitle = series.Title;//replaces the nasty path as title to help with logging
if (parseResult == null) if (parseResult == null)
return null; return null;
@ -90,7 +91,7 @@ namespace NzbDrone.Core.Providers
} }
else else
{ {
Logger.Warn("Unable to find '{0}' in the database. File:{1}", parseResult, filePath); Logger.Warn("Unable to find [{0}] in the database.[{1}]", parseResult, filePath);
} }
} }
else else
@ -106,7 +107,7 @@ namespace NzbDrone.Core.Providers
} }
else else
{ {
Logger.Warn("Unable to find '{0}' in the database. File:{1}", parseResult, filePath); Logger.Warn("Unable to find [{0}] in the database.[{1}]", parseResult, filePath);
} }
} }
} }

Loading…
Cancel
Save