mirror of
https://github.com/Radarr/Radarr
synced 2025-02-25 07:32:56 +00:00
parent
fe0dfef83c
commit
a16e46cf38
2 changed files with 13 additions and 1 deletions
|
@ -79,7 +79,6 @@ public void should_parse_sdtv_quality(string title, bool proper)
|
|||
[TestCase("the.shield.1x13.circles.ws.xvidvd-tns", false)]
|
||||
[TestCase("the_x-files.9x18.sunshine_days.ac3.ws_dvdrip_xvid-fov.avi", false)]
|
||||
[TestCase("[FroZen] Miyuki - 23 [DVD][7F6170E6]", false)]
|
||||
[TestCase("Hannibal.S01E05.576p.BluRay.DD5.1.x264-HiSD", false)]
|
||||
[TestCase("Hannibal.S01E05.480p.BluRay.DD5.1.x264-HiSD", false)]
|
||||
[TestCase("Heidi Girl of the Alps (BD)(640x480(RAW) (BATCH 1) (1-13)", false)]
|
||||
[TestCase("[Doki] Clannad - 02 (848x480 XviD BD MP3) [95360783]", false)]
|
||||
|
@ -215,6 +214,13 @@ public void should_parse_bluray1080p_quality(string title, bool proper)
|
|||
ParseAndVerifyQuality(title, Quality.Bluray1080p, proper);
|
||||
}
|
||||
|
||||
[TestCase("Movie.Name.2004.576p.BDRip.x264-HANDJOB")]
|
||||
[TestCase("Hannibal.S01E05.576p.BluRay.DD5.1.x264-HiSD")]
|
||||
public void should_parse_bluray576p_quality(string title)
|
||||
{
|
||||
ParseAndVerifyQuality(title, Quality.Bluray576p, false);
|
||||
}
|
||||
|
||||
//[TestCase("POI S02E11 1080i HDTV DD5.1 MPEG2-TrollHD", false)]
|
||||
//[TestCase("How I Met Your Mother S01E18 Nothing Good Happens After 2 A.M. 720p HDTV DD5.1 MPEG2-TrollHD", false)]
|
||||
//[TestCase("The Voice S01E11 The Finals 1080i HDTV DD5.1 MPEG2-TrollHD", false)]
|
||||
|
|
|
@ -215,6 +215,12 @@ public static QualityModel ParseQuality(string name)
|
|||
case Resolution.R1080p:
|
||||
result.Quality = Quality.Bluray1080p;
|
||||
return result;
|
||||
case Resolution.R576p:
|
||||
result.Quality = Quality.Bluray576p;
|
||||
return result;
|
||||
case Resolution.R480P:
|
||||
result.Quality = Quality.Bluray480p;
|
||||
return result;
|
||||
default:
|
||||
result.Quality = Quality.DVD;
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue