mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
Check sab queue now takes quality into consideration
This commit is contained in:
parent
2d1f506f93
commit
9acfb7330c
15 changed files with 202 additions and 287 deletions
|
@ -117,7 +117,7 @@ namespace NzbDrone.Core
|
|||
|
||||
private static EpisodeParseResult ParseMatchCollection(MatchCollection matchCollection)
|
||||
{
|
||||
var seriesName = NormalizeTitle(matchCollection[0].Groups["title"].Value);
|
||||
var seriesName = matchCollection[0].Groups["title"].Value;
|
||||
|
||||
int airyear;
|
||||
Int32.TryParse(matchCollection[0].Groups["airyear"].Value, out airyear);
|
||||
|
@ -184,7 +184,7 @@ namespace NzbDrone.Core
|
|||
};
|
||||
}
|
||||
|
||||
parsedEpisode.CleanTitle = seriesName;
|
||||
parsedEpisode.SeriesTitle = seriesName;
|
||||
|
||||
Logger.Trace("Episode Parsed. {0}", parsedEpisode);
|
||||
|
||||
|
@ -307,7 +307,15 @@ namespace NzbDrone.Core
|
|||
}
|
||||
}
|
||||
|
||||
if ((normalizedName.Contains("sdtv") || (result.QualityType == QualityTypes.Unknown && normalizedName.Contains("hdtv"))) && !normalizedName.Contains("mpeg"))
|
||||
if (name.Contains("[HDTV]"))
|
||||
{
|
||||
result.QualityType = QualityTypes.HDTV;
|
||||
return result;
|
||||
}
|
||||
|
||||
if ((normalizedName.Contains("sdtv") ||
|
||||
(result.QualityType == QualityTypes.Unknown && normalizedName.Contains("hdtv"))) &&
|
||||
!normalizedName.Contains("mpeg"))
|
||||
{
|
||||
result.QualityType = QualityTypes.SDTV;
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue