1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-23 14:51:01 +00:00

Support 8 digit IMDB ID's (#6101)

Currently receive `Incorrect parameter: invalid imdbid format` when searching for content which uses an 8 digit IMDB id.
This commit is contained in:
David Pooley 2019-10-06 20:32:22 +01:00 committed by garfield69
parent 3fb26627b1
commit b7daad903f

View file

@ -11,7 +11,7 @@ namespace Jackett.Common.Utils
new Regex(
@"(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x9F\uFEFF\uFFFE\uFFFF]",
RegexOptions.Compiled);
private static readonly Regex ImdbId = new Regex(@"^(?:tt)?(\d{1,7})$", RegexOptions.Compiled);
private static readonly Regex ImdbId = new Regex(@"^(?:tt)?(\d{1,8})$", RegexOptions.Compiled);
public static string NormalizeSpace(string s)
{