|
|
@ -3,7 +3,6 @@ using NUnit.Framework;
|
|
|
|
using NzbDrone.Core.Parser;
|
|
|
|
using NzbDrone.Core.Parser;
|
|
|
|
using NzbDrone.Core.Qualities;
|
|
|
|
using NzbDrone.Core.Qualities;
|
|
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
|
using NzbDrone.Test.Common;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -88,6 +87,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
[TestCase("Da.Vincis.Demons.S02E04.480p.WEB.DL.nSD.x264-NhaNc3", false)]
|
|
|
|
[TestCase("Da.Vincis.Demons.S02E04.480p.WEB.DL.nSD.x264-NhaNc3", false)]
|
|
|
|
[TestCase("Incorporated.S01E08.Das.geloeschte.Ich.German.Dubbed.DL.AmazonHD.x264-TVS", false)]
|
|
|
|
[TestCase("Incorporated.S01E08.Das.geloeschte.Ich.German.Dubbed.DL.AmazonHD.x264-TVS", false)]
|
|
|
|
[TestCase("Haters.Back.Off.S01E04.Rod.Trip.mit.meinem.Onkel.German.DL.NetflixUHD.x264", false)]
|
|
|
|
[TestCase("Haters.Back.Off.S01E04.Rod.Trip.mit.meinem.Onkel.German.DL.NetflixUHD.x264", false)]
|
|
|
|
|
|
|
|
[TestCase("[HorribleSubs] Series Title! S01 [Web][MKV][h264][480p][AAC 2.0][Softsubs (HorribleSubs)]", false)]
|
|
|
|
public void should_parse_webdl480p_quality(string title, bool proper)
|
|
|
|
public void should_parse_webdl480p_quality(string title, bool proper)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ParseAndVerifyQuality(title, Quality.WEBDL480p, proper);
|
|
|
|
ParseAndVerifyQuality(title, Quality.WEBDL480p, proper);
|
|
|
@ -193,6 +193,8 @@ namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
[TestCase("into.the.badlands.s03e16.h264.720p-web-handbrake.mkv", false)]
|
|
|
|
[TestCase("into.the.badlands.s03e16.h264.720p-web-handbrake.mkv", false)]
|
|
|
|
[TestCase("BrainDead.S01E01.The.Insanity.Principle.720p.WEB-DL.DD5.1.H.264-BD", false)]
|
|
|
|
[TestCase("BrainDead.S01E01.The.Insanity.Principle.720p.WEB-DL.DD5.1.H.264-BD", false)]
|
|
|
|
[TestCase("Jerks.S03E05.Griebnitzsee.German.720p.MaxdomeHD.AVC-TVS", false)]
|
|
|
|
[TestCase("Jerks.S03E05.Griebnitzsee.German.720p.MaxdomeHD.AVC-TVS", false)]
|
|
|
|
|
|
|
|
[TestCase("[HorribleSubs] Series Title! S01 [Web][MKV][h264][720p][AAC 2.0][Softsubs (HorribleSubs)]", false)]
|
|
|
|
|
|
|
|
[TestCase("[HorribleSubs] Series Title! S01 [Web][MKV][h264][AAC 2.0][Softsubs (HorribleSubs)]", false)]
|
|
|
|
public void should_parse_webdl720p_quality(string title, bool proper)
|
|
|
|
public void should_parse_webdl720p_quality(string title, bool proper)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ParseAndVerifyQuality(title, Quality.WEBDL720p, proper);
|
|
|
|
ParseAndVerifyQuality(title, Quality.WEBDL720p, proper);
|
|
|
@ -230,6 +232,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
[TestCase("Legacies.S02E02.This.Year.Will.Be.Different.1080p.AMZN.WEB...", false)]
|
|
|
|
[TestCase("Legacies.S02E02.This.Year.Will.Be.Different.1080p.AMZN.WEB...", false)]
|
|
|
|
[TestCase("Legacies.S02E02.This.Year.Will.Be.Different.1080p.AMZN.WEB.", false)]
|
|
|
|
[TestCase("Legacies.S02E02.This.Year.Will.Be.Different.1080p.AMZN.WEB.", false)]
|
|
|
|
[TestCase("Series Title - S01E11 2020 1080p Viva MKV WEB", false)]
|
|
|
|
[TestCase("Series Title - S01E11 2020 1080p Viva MKV WEB", false)]
|
|
|
|
|
|
|
|
[TestCase("[HorribleSubs] Series Title! S01 [Web][MKV][h264][1080p][AAC 2.0][Softsubs (HorribleSubs)]", false)]
|
|
|
|
public void should_parse_webdl1080p_quality(string title, bool proper)
|
|
|
|
public void should_parse_webdl1080p_quality(string title, bool proper)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ParseAndVerifyQuality(title, Quality.WEBDL1080p, proper);
|
|
|
|
ParseAndVerifyQuality(title, Quality.WEBDL1080p, proper);
|
|
|
@ -251,6 +254,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
[TestCase("The.Nightly.Show.2016.03.14.2160p.WEB.PROPER.h264-spamTV", true)]
|
|
|
|
[TestCase("The.Nightly.Show.2016.03.14.2160p.WEB.PROPER.h264-spamTV", true)]
|
|
|
|
[TestCase("House.of.Cards.US.s05e13.4K.UHD.WEB.DL", false)]
|
|
|
|
[TestCase("House.of.Cards.US.s05e13.4K.UHD.WEB.DL", false)]
|
|
|
|
[TestCase("House.of.Cards.US.s05e13.UHD.4K.WEB.DL", false)]
|
|
|
|
[TestCase("House.of.Cards.US.s05e13.UHD.4K.WEB.DL", false)]
|
|
|
|
|
|
|
|
[TestCase("[HorribleSubs] Series Title! S01 [Web][MKV][h264][2160p][AAC 2.0][Softsubs (HorribleSubs)]", false)]
|
|
|
|
public void should_parse_webdl2160p_quality(string title, bool proper)
|
|
|
|
public void should_parse_webdl2160p_quality(string title, bool proper)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ParseAndVerifyQuality(title, Quality.WEBDL2160p, proper);
|
|
|
|
ParseAndVerifyQuality(title, Quality.WEBDL2160p, proper);
|
|
|
|