mirror of
https://github.com/Sonarr/Sonarr
synced 2026-05-05 19:40:56 +02:00
parent
b319cb9525
commit
f215ba9bac
2 changed files with 15 additions and 1 deletions
|
|
@ -94,6 +94,20 @@ public class HashedReleaseFixture : CoreTest
|
|||
"Sons of Anarchy",
|
||||
Quality.HDTV720p,
|
||||
null
|
||||
},
|
||||
new object[]
|
||||
{
|
||||
@"50E50S.denorD.mkv".AsOsAgnostic(),
|
||||
"Droned",
|
||||
Quality.HDTV720p,
|
||||
null
|
||||
},
|
||||
new object[]
|
||||
{
|
||||
@"C:\Test\XxQVHK4GJMP3n2dLpmhW\XxQVHK4GJMP3n2dLpmhW\50E50S.denorD.mkv".AsOsAgnostic(),
|
||||
"Droned",
|
||||
Quality.HDTV720p,
|
||||
null
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ public static class Parser
|
|||
};
|
||||
|
||||
//Regex to detect whether the title was reversed.
|
||||
private static readonly Regex ReversedTitleRegex = new Regex(@"[-._ ](p027|p0801|\d{2,3}E\d{2}S)[-._ ]", RegexOptions.Compiled);
|
||||
private static readonly Regex ReversedTitleRegex = new Regex(@"(?:^|[-._ ])(p027|p0801|\d{2,3}E\d{2}S)[-._ ]", RegexOptions.Compiled);
|
||||
|
||||
private static readonly Regex NormalizeRegex = new Regex(@"((?:\b|_)(?<!^)(a(?!$)|an|the|and|or|of)(?:\b|_))|\W|_",
|
||||
RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
||||
|
|
|
|||
Loading…
Reference in a new issue