aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/PathExtensions.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-04-21 15:12:04 -0600
committercrobibero <cody@robibe.ro>2020-04-21 15:12:04 -0600
commit14c94b4e5f6fd7e9ed3483bc2d582f68f8a21c67 (patch)
treef5082cbda8d5f207bd00cf06f4f4e32f05c127e9 /Emby.Server.Implementations/Library/PathExtensions.cs
parentfff2a40ffc4e5010b26143185c68d221225c1a22 (diff)
parenta2f19eadf739297cbbc99c9082b0175e8b881054 (diff)
Merge branch 'api-migration' of https://github.com/jellyfin/jellyfin into redoc
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;
}