diff options
| author | randrey <randrey-gh@outlook.com> | 2020-04-18 18:18:48 -0700 |
|---|---|---|
| committer | randrey <randrey-gh@outlook.com> | 2020-04-18 18:18:48 -0700 |
| commit | 92f273cb0cd94923be25b6b69147eeb9b86749b0 (patch) | |
| tree | 1c76090a4d4ee01a86bd4ce3f8d4c3a0b4817540 /Emby.Server.Implementations/Library/PathExtensions.cs | |
| parent | d7a71cee3ced19b43bdc1ee1523f236de15de26a (diff) | |
Limit imdbid to 8 digits.
Diffstat (limited to 'Emby.Server.Implementations/Library/PathExtensions.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/PathExtensions.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/PathExtensions.cs b/Emby.Server.Implementations/Library/PathExtensions.cs index 5e863b82d..67c0e4eae 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,8}", RegexOptions.IgnoreCase); return m.Success ? m.Value : null; } |
