Fixed: Handle more obfuscated names

Closes #4198
pull/4267/head
bakerboy448 4 years ago committed by Mark McDowall
parent e10cff5414
commit 4a7e5ac06e

@ -122,6 +122,20 @@ namespace NzbDrone.Core.Test.ParserTests
"Series Title", "Series Title",
Quality.WEBDL1080p, Quality.WEBDL1080p,
"NTb" "NTb"
},
new object[]
{
@"C:\Test\tv\Series.Title.2017.S04E07.Episode.Name.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb/s2e2fYzx5xJhuBjHn5ZXE07Ebi.mkv".AsOsAgnostic(),
"Series Title 2017",
Quality.WEBDL1080p,
"NTb"
},
new object[]
{
@"C:\Test\tv\Series.Title.S04E03.Episode.Name.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb\zM0vnVU1SoV4uwTihfzTHkYmJPBemgN3MqXG1fY.mkv".AsOsAgnostic(),
"Series Title",
Quality.WEBDL1080p,
"NTb"
} }
}; };

@ -349,6 +349,12 @@ namespace NzbDrone.Core.Parser
// additional Generic match for mixed-case hashes. - Started appearing Dec 2020 // additional Generic match for mixed-case hashes. - Started appearing Dec 2020
new Regex(@"^[0-9a-zA-Z]{30}", RegexOptions.Compiled), new Regex(@"^[0-9a-zA-Z]{30}", RegexOptions.Compiled),
// additional Generic match for mixed-case hashes. - Started appearing Jan 2021
new Regex(@"^[0-9a-zA-Z]{26}", RegexOptions.Compiled),
// additional Generic match for mixed-case hashes. - Started appearing Jan 2021
new Regex(@"^[0-9a-zA-Z]{39}", RegexOptions.Compiled),
}; };
private static readonly Regex[] SeasonFolderRegexes = new Regex[] private static readonly Regex[] SeasonFolderRegexes = new Regex[]

Loading…
Cancel
Save