1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

1080p releases without x264 or hdtv markers will be treated as HDTV instead of unknown

This commit is contained in:
Mark McDowall 2013-08-27 07:08:00 -07:00
parent dcb1b76917
commit 3c732f5a5e
2 changed files with 8 additions and 1 deletions

View File

@ -79,7 +79,8 @@ public class QualityParserFixture : CoreTest
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[] { "Sons.Of.Anarchy.S02E13.1080p.BluRay.x264-AVCDVD", Quality.Bluray1080p, false }
new object[] { "Sons.Of.Anarchy.S02E13.1080p.BluRay.x264-AVCDVD", Quality.Bluray1080p, false },
new object[] { "Under the Dome S01E10 Let the Games Begin 1080p", Quality.HDTV1080p, false }
};
public static object[] SelfQualityParserCases =

View File

@ -386,6 +386,12 @@ private static QualityModel ParseQuality(string name)
return result;
}
if (normalizedName.Contains("1080p"))
{
result.Quality = Quality.HDTV1080p;
return result;
}
return result;
}