mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-10 23:29:53 +02:00
Fixed: DVDRip/DVDRemux being treated as full disk releases
Closes #6134
This commit is contained in:
parent
a5506b09d2
commit
ba447c93e3
@ -86,5 +86,13 @@ public void should_return_false_if_matches_disc_format(string title)
|
|||||||
_remoteEpisode.Release.Title = title;
|
_remoteEpisode.Release.Title = title;
|
||||||
Subject.IsSatisfiedBy(_remoteEpisode, null).Accepted.Should().BeFalse();
|
Subject.IsSatisfiedBy(_remoteEpisode, null).Accepted.Should().BeFalse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[TestCase("Series Title EP50 USLT NTSC DVDRemux DD2.0")]
|
||||||
|
[TestCase("Series.Title.S01.NTSC.DVDRip.DD2.0.x264-PLAiD")]
|
||||||
|
public void should_return_true_if_dvdrip(string title)
|
||||||
|
{
|
||||||
|
_remoteEpisode.Release.Title = title;
|
||||||
|
Subject.IsSatisfiedBy(_remoteEpisode, null).Accepted.Should().BeTrue();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ public class RawDiskSpecification : IDecisionEngineSpecification
|
|||||||
{
|
{
|
||||||
new Regex(@"(?:dis[ck])(?:[-_. ]\d+[-_. ])(?:(?:(?:480|720|1080|2160)[ip]|)[-_. ])?(?:Blu\-?ray)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
new Regex(@"(?:dis[ck])(?:[-_. ]\d+[-_. ])(?:(?:(?:480|720|1080|2160)[ip]|)[-_. ])?(?:Blu\-?ray)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
||||||
new Regex(@"(?:(?:480|720|1080|2160)[ip]|)[-_. ](?:full)[-_. ](?:Blu\-?ray)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
new Regex(@"(?:(?:480|720|1080|2160)[ip]|)[-_. ](?:full)[-_. ](?:Blu\-?ray)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
||||||
new Regex(@"(?:\d?x?M?DVD-?[R59])", RegexOptions.Compiled | RegexOptions.IgnoreCase)
|
new Regex(@"(?:\d?x?M?DVD-?[R59])[ ._]", RegexOptions.Compiled | RegexOptions.IgnoreCase)
|
||||||
};
|
};
|
||||||
|
|
||||||
private static readonly string[] _dvdContainerTypes = new[] { "vob", "iso" };
|
private static readonly string[] _dvdContainerTypes = new[] { "vob", "iso" };
|
||||||
|
Loading…
Reference in New Issue
Block a user