mirror of
https://github.com/Radarr/Radarr.git
synced 2026-03-05 13:21:25 -05:00
Fixed: Reject multi-part files with P1, P2, etc.
This commit is contained in:
@@ -54,6 +54,17 @@ namespace NzbDrone.Core.Test.MediaFiles.MovieImport.Specifications
|
||||
@"C:\Test\Downloaded\Bad Boys (2006) part1.mkv",
|
||||
@"C:\Test\Downloaded\Bad Boys (2006) part2.mkv"
|
||||
})]
|
||||
|
||||
[TestCase(new object[]
|
||||
{
|
||||
@"C:\Test\Downloaded\Bad Boys (2006) pt1.mkv",
|
||||
@"C:\Test\Downloaded\Bad Boys (2006) pt2.mkv"
|
||||
})]
|
||||
[TestCase(new object[]
|
||||
{
|
||||
@"C:\Test\Downloaded\Bad Boys (2006) P1.mkv",
|
||||
@"C:\Test\Downloaded\Bad Boys (2006) P2.mkv"
|
||||
})]
|
||||
[TestCase(new object[]
|
||||
{
|
||||
@"C:\Test\Downloaded\blah blah - cd 1.mvk",
|
||||
|
||||
@@ -12,8 +12,8 @@ namespace NzbDrone.Core.MediaFiles.MovieImport.Specifications
|
||||
{
|
||||
private static readonly Regex[] MovieMultiPartRegex = new[]
|
||||
{
|
||||
new Regex(@"(?<!^)(?<identifier>[ _.-]*(?:cd|dvd|p(?:ar)?t|dis[ck])[ _.-]*[0-9]+)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
||||
new Regex(@"(?<!^)(?<identifier>[ _.-]*(?:cd|dvd|p(?:ar)?t|dis[ck])[ _.-]*[a-d]+)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
||||
new Regex(@"(?<!^)(?<identifier>[ _.-]*(?:cd|dvd|p(?:(?:ar)?t)?|dis[ck])[ _.-]*[0-9]+)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
||||
new Regex(@"(?<!^)(?<identifier>[ _.-]*(?:cd|dvd|p(?:(?:ar)?t)?|dis[ck])[ _.-]*[a-d]+)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
||||
};
|
||||
|
||||
private readonly IDiskProvider _diskProvider;
|
||||
|
||||
Reference in New Issue
Block a user