Limit imdbid to 8 digits.

This commit is contained in:
randrey
2020-04-18 18:18:48 -07:00
parent d7a71cee3c
commit 92f273cb0c
2 changed files with 3 additions and 3 deletions

View File

@@ -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,8}", RegexOptions.IgnoreCase);
return m.Success ? m.Value : null;
}