ParseSeriesName will now return normalized version of the title if it doesn't match any predefined

PostDownload provider will skip subfolders that are known series folders.
This commit is contained in:
kay.one 2011-12-10 10:54:16 -08:00
commit e269494ff8
6 changed files with 54 additions and 17 deletions

View file

@ -96,7 +96,7 @@ namespace NzbDrone.Core
{
//Check if episode is in the future (most likley a parse error)
if (result.AirDate > DateTime.Now.AddDays(1).Date)
break;
break;
result.Language = ParseLanguage(title);
result.Quality = ParseQuality(title);
@ -185,12 +185,7 @@ namespace NzbDrone.Core
return parsedEpisode;
}
/// <summary>
/// Parses a post title to find the series that relates to it
/// </summary>
/// <param name = "title">Title of the report</param>
/// <returns>Normalized Series Name</returns>
internal static string ParseSeriesName(string title)
public static string ParseSeriesName(string title)
{
Logger.Trace("Parsing string '{0}'", title);
@ -207,7 +202,7 @@ namespace NzbDrone.Core
}
}
return String.Empty;
return NormalizeTitle(title);
}
internal static Quality ParseQuality(string name)