aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-04-20 00:09:18 +0200
committerGitHub <noreply@github.com>2020-04-20 00:09:18 +0200
commit6f866a7fdcd406e67892ad7e69b6a152a7d3cbe9 (patch)
tree794c431ab5cbddb2ee9c05ae6c7c883a7a72dde7 /Emby.Server.Implementations/Library
parent5c669d7ad7145eb2b54ec88a8636a28ea4eefcd1 (diff)
parentd30fd3b3d2e935f865e7560629d72e87cb0c760d (diff)
Merge pull request #2915 from randrey/imdbid-length-fix
Fix imdbid regex
Diffstat (limited to 'Emby.Server.Implementations/Library')
-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;
}