mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
apisearch: support 8 digit imdbid
This commit is contained in:
@@ -43,8 +43,8 @@ namespace Jackett.Common.Models.DTO
|
|||||||
stringQuery.Categories = new int[0];
|
stringQuery.Categories = new int[0];
|
||||||
stringQuery.ExpandCatsToSubCats();
|
stringQuery.ExpandCatsToSubCats();
|
||||||
|
|
||||||
// try to build an IMDB Query
|
// try to build an IMDB Query (tt plus 6 to 8 digits)
|
||||||
if (stringQuery.SanitizedSearchTerm.StartsWith("tt") && stringQuery.SanitizedSearchTerm.Length <= 9)
|
if (stringQuery.SanitizedSearchTerm.StartsWith("tt") && stringQuery.SanitizedSearchTerm.Length <= 10)
|
||||||
{
|
{
|
||||||
var imdbID = ParseUtil.GetFullImdbID(stringQuery.SanitizedSearchTerm);
|
var imdbID = ParseUtil.GetFullImdbID(stringQuery.SanitizedSearchTerm);
|
||||||
TorznabQuery imdbQuery = null;
|
TorznabQuery imdbQuery = null;
|
||||||
|
Reference in New Issue
Block a user