aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Providers
diff options
context:
space:
mode:
authorLuis Miguel Almánzar <ruisu15@gmail.com>2013-10-28 20:35:01 -0400
committerLuis Miguel Almánzar <ruisu15@gmail.com>2013-10-28 20:35:01 -0400
commitd77122ba0f3c3ca71bfa4c8fa5b25bb3c3f0f1dc (patch)
tree11c740f40e5ade69dcd738fe7aab37d922919b54 /MediaBrowser.Providers
parente7a1f523734d1fc6e7808c2f703dbe543410ffe1 (diff)
add support to movie names with dot notation
Diffstat (limited to 'MediaBrowser.Providers')
-rw-r--r--MediaBrowser.Providers/Movies/MovieDbProvider.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/MediaBrowser.Providers/Movies/MovieDbProvider.cs b/MediaBrowser.Providers/Movies/MovieDbProvider.cs
index 9ed0860b2..63a237d2c 100644
--- a/MediaBrowser.Providers/Movies/MovieDbProvider.cs
+++ b/MediaBrowser.Providers/Movies/MovieDbProvider.cs
@@ -189,6 +189,7 @@ namespace MediaBrowser.Providers.Movies
static readonly Regex[] NameMatches = new[] {
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
};
@@ -320,7 +321,7 @@ namespace MediaBrowser.Providers.Movies
/// <param name="name">The name.</param>
/// <param name="justName">Name of the just.</param>
/// <param name="year">The year.</param>
- protected void ParseName(string name, out string justName, out int? year)
+ public static void ParseName(string name, out string justName, out int? year)
{
justName = null;
year = null;