mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 01:37:07 +00:00
Add quality to titleFix so it will be added to queue (and looked for in queue) that way. [Quality]
This commit is contained in:
parent
1ba6cd0d3a
commit
2f8ad5db45
1 changed files with 4 additions and 0 deletions
|
@ -153,9 +153,12 @@ namespace NzbDrone.Core.Providers
|
||||||
Logger.Debug("Show is being watched: {0}", series.Title);
|
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.TitleFix = GetTitleFix(episodeParseResults, series.SeriesId); //Get the TitleFix so we can use it later
|
||||||
|
|
||||||
nzb.Proper = Parser.ParseProper(nzb.Title);
|
nzb.Proper = Parser.ParseProper(nzb.Title);
|
||||||
nzb.Quality = Parser.ParseQuality(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)
|
//Loop through the list of the episodeParseResults to ensure that all the episodes are needed)
|
||||||
foreach (var episode in episodeParseResults)
|
foreach (var episode in episodeParseResults)
|
||||||
{
|
{
|
||||||
|
@ -172,6 +175,7 @@ namespace NzbDrone.Core.Providers
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var titleFix = GetTitleFix(new List<EpisodeParseResult> { episode }, episodeModel.SeriesId);
|
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))
|
if (_sab.IsInQueue(titleFix))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue