|
|
@ -33,18 +33,30 @@ namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
[TestCase("Series.Title.S01E05.The-Aniversary.HDTV-1080p.mkv", null)]
|
|
|
|
[TestCase("Series.Title.S01E05.The-Aniversary.HDTV-1080p.mkv", null)]
|
|
|
|
[TestCase("Series US (2010) S04 (1080p BDRip x265 10bit DTS-HD MA 5 1 - WEM)[TAoE]", null)]
|
|
|
|
[TestCase("Series US (2010) S04 (1080p BDRip x265 10bit DTS-HD MA 5 1 - WEM)[TAoE]", null)]
|
|
|
|
[TestCase("The.Series.S03E04.2160p.Amazon.WEBRip.DTS-HD.MA.5.1.x264", null)]
|
|
|
|
[TestCase("The.Series.S03E04.2160p.Amazon.WEBRip.DTS-HD.MA.5.1.x264", null)]
|
|
|
|
[TestCase("SomeShow.S20E13.1080p.BluRay.DTS-X.MA.5.1.x264",null)]
|
|
|
|
[TestCase("SomeShow.S20E13.1080p.BluRay.DTS-X.MA.5.1.x264", null)]
|
|
|
|
[TestCase("SomeShow.S20E13.1080p.BluRay.DTS-MA.5.1.x264",null)]
|
|
|
|
[TestCase("SomeShow.S20E13.1080p.BluRay.DTS-MA.5.1.x264", null)]
|
|
|
|
[TestCase("SomeShow.S20E13.1080p.BluRay.DTS-ES.5.1.x264",null)]
|
|
|
|
[TestCase("SomeShow.S20E13.1080p.BluRay.DTS-ES.5.1.x264", null)]
|
|
|
|
[TestCase("SomeShow.S20E13.1080p.Blu-Ray.DTS-ES.5.1.x264",null)]
|
|
|
|
[TestCase("SomeShow.S20E13.1080p.Blu-Ray.DTS-ES.5.1.x264", null)]
|
|
|
|
[TestCase("SomeShow.S20E13.1080p.Blu-Ray.DTS-ES.5.1.x264-ROUGH [PublicHD]", "ROUGH")]
|
|
|
|
[TestCase("SomeShow.S20E13.1080p.Blu-Ray.DTS-ES.5.1.x264-ROUGH [PublicHD]", "ROUGH")]
|
|
|
|
[TestCase("SomeShow S01E168 1080p WEB-DL AAC 2.0 x264-Erai-raws", "Erai-raws")]
|
|
|
|
[TestCase("SomeShow S01E168 1080p WEB-DL AAC 2.0 x264-Erai-raws", "Erai-raws")]
|
|
|
|
|
|
|
|
[TestCase("The.Good.Series.S05E03.Series.of.Intelligence.1080p.10bit.AMZN.WEB-DL.DDP5.1.HEVC-Vyndros", "Vyndros")]
|
|
|
|
//[TestCase("", "")]
|
|
|
|
//[TestCase("", "")]
|
|
|
|
public void should_parse_release_group(string title, string expected)
|
|
|
|
public void should_parse_release_group(string title, string expected)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Parser.Parser.ParseReleaseGroup(title).Should().Be(expected);
|
|
|
|
Parser.Parser.ParseReleaseGroup(title).Should().Be(expected);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[TestCase("Show.Name.2009.S01.1080p.BluRay.DTS5.1.x264-D-Z0N3", "D-Z0N3")]
|
|
|
|
|
|
|
|
[TestCase("Show.Name.S01E01.1080p.WEB-DL.H264.Fight-BB.mkv", "Fight-BB")]
|
|
|
|
|
|
|
|
[TestCase("The Show S08E09 The Series.1080p.AMZN.WEB-DL.x265.10bit.EAC3.6.0-Qman[UTR]", "UTR")]
|
|
|
|
|
|
|
|
[TestCase("The Show S03E07 Fire and Series[1080p x265 10bit S87 Joy]", "Joy")]
|
|
|
|
|
|
|
|
[TestCase("The Show (2016) - S02E01 - Soul Series #1 (1080p NF WEBRip x265 ImE)", "ImE")]
|
|
|
|
|
|
|
|
[TestCase("The Show (2020) - S02E03 - Fighting His Series(1080p ATVP WEB-DL x265 t3nzin)", "t3nzin")]
|
|
|
|
|
|
|
|
public void should_parse_exception_release_group(string title, string expected)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Parser.Parser.ParseReleaseGroup(title).Should().Be(expected);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void should_not_include_extension_in_release_group()
|
|
|
|
public void should_not_include_extension_in_release_group()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -87,7 +99,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
|
|
|
[TestCase("The.Series.Title.S08E08.1080p.BluRay.x264-ROVERS-4P", "ROVERS")]
|
|
|
|
[TestCase("The.Series.Title.S08E08.1080p.BluRay.x264-ROVERS-4P", "ROVERS")]
|
|
|
|
[TestCase("Series.Title.S01E02.720p.BluRay.X264-REWARD-4Planet", "REWARD")]
|
|
|
|
[TestCase("Series.Title.S01E02.720p.BluRay.X264-REWARD-4Planet", "REWARD")]
|
|
|
|
[TestCase("Series.S01E01.Rites.of.Passage.1080p.BluRay.x264-DON-AlteZachen", "DON")]
|
|
|
|
[TestCase("Series.S01E01.Rites.of.Passage.1080p.BluRay.x264-DON-AlteZachen", "DON")]
|
|
|
|
[TestCase("Series.Title.S04E06.Episode.Name.720p.WEB-DL.DD5.1.H.264-HarrHD-RePACKPOST","HarrHD")]
|
|
|
|
[TestCase("Series.Title.S04E06.Episode.Name.720p.WEB-DL.DD5.1.H.264-HarrHD-RePACKPOST", "HarrHD")]
|
|
|
|
public void should_not_include_repost_in_release_group(string title, string expected)
|
|
|
|
public void should_not_include_repost_in_release_group(string title, string expected)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Parser.Parser.ParseReleaseGroup(title).Should().Be(expected);
|
|
|
|
Parser.Parser.ParseReleaseGroup(title).Should().Be(expected);
|
|
|
|