AVCDVD releases will not be detected as DVD

This commit is contained in:
Mark McDowall 2013-08-22 22:30:34 -07:00
parent c9a0aebbfb
commit dbc4f01d6a
2 changed files with 6 additions and 3 deletions

View File

@ -78,7 +78,8 @@ namespace NzbDrone.Core.Test.ParserTests
new object[] { "POI S02E11 1080i HDTV DD5.1 MPEG2-TrollHD", Quality.RAWHD, false },
new object[] { "How I Met Your Mother S01E18 Nothing Good Happens After 2 A.M. 720p HDTV DD5.1 MPEG2-TrollHD", Quality.RAWHD, false },
new object[] { "Arrested.Development.S04E01.iNTERNAL.1080p.WEBRip.x264-QRUS", Quality.WEBDL1080p, false },
new object[] { "Arrested.Development.S04E01.720p.WEBRip.AAC2.0.x264-NFRiP", Quality.WEBDL720p, false }
new object[] { "Arrested.Development.S04E01.720p.WEBRip.AAC2.0.x264-NFRiP", Quality.WEBDL720p, false },
new object[] { "Sons.Of.Anarchy.S02E13.1080p.BluRay.x264-AVCDVD", Quality.Bluray1080p, false }
};
public static object[] SelfQualityParserCases =

View File

@ -249,7 +249,9 @@ namespace NzbDrone.Core.Parser
var result = new QualityModel { Quality = Quality.Unknown };
result.Proper = (normalizedName.Contains("proper") || normalizedName.Contains("repack"));
if (normalizedName.Contains("dvd") || normalizedName.Contains("bdrip") || normalizedName.Contains("brrip"))
//if (Regex.Match(normalizedName))
if ((normalizedName.Contains("dvd") && !normalizedName.Contains("avcdvd")) || normalizedName.Contains("bdrip") || normalizedName.Contains("brrip"))
{
result.Quality = Quality.DVD;
return result;
@ -325,8 +327,8 @@ namespace NzbDrone.Core.Parser
result.Quality = Quality.HDTV720p;
return result;
}
//Based on extension
//Based on extension
if (result.Quality == Quality.Unknown && !name.ContainsInvalidPathChars())
{
try