aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/PathExtensions.cs
diff options
context:
space:
mode:
authorrandrey <randrey-gh@outlook.com>2020-04-18 17:26:22 -0700
committerrandrey <randrey-gh@outlook.com>2020-04-18 17:26:22 -0700
commitd7a71cee3ced19b43bdc1ee1523f236de15de26a (patch)
tree8b25fba436e6721a342ccecbcfe4d2620a08c00f /Emby.Server.Implementations/Library/PathExtensions.cs
parente333e6765a931904c8b3b06b8e3a95bb5f03b1ad (diff)
Fix imdbid regex
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..5e863b82d 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\\d{7,}", RegexOptions.IgnoreCase);
return m.Success ? m.Value : null;
}