Fixed: Additional handling for obfuscated releases

closes #4198
pull/4193/head
bakerboy448 4 years ago committed by Taloth Saldono
parent 056a699daf
commit 471f0016b4

@ -115,6 +115,13 @@ namespace NzbDrone.Core.Test.ParserTests
"Series Title",
Quality.HDTV720p,
null
},
new object[]
{
@"C:\Test\tv\Series.Title.S04E03.Episode.Name.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb\cwnOJYks5E2WP7zGuzPkdkRK3JkWw0.mkv".AsOsAgnostic(),
"Series Title",
Quality.WEBDL1080p,
"NTb"
}
};

@ -240,7 +240,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("Better.Call.Saul.S03E09.1080p.NF.WEBRip.DD5.1.x264-ViSUM", false)]
[TestCase("The Walking Dead S09E13 1.54 GB WEB-RIP 1080p Dual-Audio 2019 MKV", false)]
[TestCase("Series.Title.1x04.ITA.1080p.WEBMux.x264-NovaRip", false)]
[TestCase("The.Mandalorian.2019.S02E07.Chapter.15.The.Believer.4Kto1080p.DSNYP.Webrip.x265.10bit.EAC3.5.1.Atmos.GokiTAoE", false)]
[TestCase("Series.Title.2019.S02E07.Chapter.15.The.Believer.4Kto1080p.DSNYP.Webrip.x265.10bit.EAC3.5.1.Atmos.GokiTAoE", false)]
public void should_parse_webrip1080p_quality(string title, bool proper)
{
ParseAndVerifyQuality(title, Quality.WEBRip1080p, proper);

@ -346,6 +346,9 @@ namespace NzbDrone.Core.Parser
// 170424_26 - Started appearing August 2018
new Regex(@"^\d{6}_\d{2}$"),
// additional Generic match for mixed-case hashes. - Started appearing Dec 2020
new Regex(@"^[0-9a-zA-Z]{30}", RegexOptions.Compiled),
};
private static readonly Regex[] SeasonFolderRegexes = new Regex[]

Loading…
Cancel
Save