aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/PathExtensions.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-04-20 00:09:18 +0200
committerJoshua M. Boniface <joshua@boniface.me>2020-04-26 14:54:11 -0400
commit77f72dc60756aad8bf23a5e76b05f6f4b758ee07 (patch)
treeeb11cb9c55aab4c9c091139b1e5da4e5dbc4e1ca /Emby.Server.Implementations/Library/PathExtensions.cs
parent16d9318e086fc22bc7b785bf7f8eb5bee5f6c6b8 (diff)
Merge pull request #2915 from randrey/imdbid-length-fix
Fix imdbid regex (cherry picked from commit 6f866a7fdcd406e67892ad7e69b6a152a7d3cbe9) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'Emby.Server.Implementations/Library/PathExtensions.cs')
-rw-r--r--Emby.Server.Implementations/Library/PathExtensions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/PathExtensions.cs b/Emby.Server.Implementations/Library/PathExtensions.cs
index 4fdf73b77..1d61ed57e 100644
--- a/Emby.Server.Implementations/Library/PathExtensions.cs
+++ b/Emby.Server.Implementations/Library/PathExtensions.cs
@@ -39,7 +39,7 @@ namespace Emby.Server.Implementations.Library
// for imdbid we also accept pattern matching
if (string.Equals(attrib, "imdbid", StringComparison.OrdinalIgnoreCase))
{
- var m = Regex.Match(str, "tt\\d{7}", RegexOptions.IgnoreCase);
+ var m = Regex.Match(str, "tt([0-9]{7,8})", RegexOptions.IgnoreCase);
return m.Success ? m.Value : null;
}