Add quality to titleFix so it will be added to queue (and looked for in queue) that way. [Quality]

This commit is contained in:
markus101 2011-03-06 22:20:57 -08:00
parent 1ba6cd0d3a
commit 2f8ad5db45
1 changed files with 4 additions and 0 deletions

View File

@ -153,9 +153,12 @@ namespace NzbDrone.Core.Providers
Logger.Debug("Show is being watched: {0}", series.Title);
nzb.TitleFix = GetTitleFix(episodeParseResults, series.SeriesId); //Get the TitleFix so we can use it later
nzb.Proper = Parser.ParseProper(nzb.Title);
nzb.Quality = Parser.ParseQuality(nzb.Title);
nzb.TitleFix = String.Format("{0} [{1}]", nzb.TitleFix, nzb.Quality); //Add Quality to the titleFix
//Loop through the list of the episodeParseResults to ensure that all the episodes are needed)
foreach (var episode in episodeParseResults)
{
@ -172,6 +175,7 @@ namespace NzbDrone.Core.Providers
return;
var titleFix = GetTitleFix(new List<EpisodeParseResult> { episode }, episodeModel.SeriesId);
titleFix = String.Format("{0} [{1}]", titleFix, nzb.Quality); //Add Quality to the titleFix
if (_sab.IsInQueue(titleFix))
return;