diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-07-05 01:21:13 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-07-05 01:21:13 -0400 |
| commit | ed5bf546c1c1498601ea41bd24c12f9cbf7c84e7 (patch) | |
| tree | 203bc7dce562cb922ea9682b093d368f210cb5f9 /MediaBrowser.Controller/Providers/NameParser.cs | |
| parent | ba720ba9573035fd25ded0da2ffe532ebae2f6fd (diff) | |
fixes #689 - Support grouping latest items
Diffstat (limited to 'MediaBrowser.Controller/Providers/NameParser.cs')
| -rw-r--r-- | MediaBrowser.Controller/Providers/NameParser.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Providers/NameParser.cs b/MediaBrowser.Controller/Providers/NameParser.cs index 726f0e60e..cdd0974ea 100644 --- a/MediaBrowser.Controller/Providers/NameParser.cs +++ b/MediaBrowser.Controller/Providers/NameParser.cs @@ -5,13 +5,13 @@ namespace MediaBrowser.Controller.Providers { public static class NameParser { - static readonly Regex[] NameMatches = new[] { + static readonly Regex[] NameMatches = + { new Regex(@"(?<name>.*)\((?<year>\d{4})\)"), // matches "My Movie (2001)" and gives us the name and the year new Regex(@"(?<name>.*)(\.(?<year>\d{4})(\.|$)).*$"), new Regex(@"(?<name>.*)") // last resort matches the whole string as the name }; - /// <summary> /// Parses the name. /// </summary> |
