core: add support for tmdbid to torznab tvsearch. resolves #13295

also update any indexer that has tmdbid on their moviesearch and add it to the tvsearch too.
This commit is contained in:
Garfield69
2022-06-12 19:58:12 +12:00
parent 24f97d763f
commit 0df78edc9a
38 changed files with 49 additions and 37 deletions

View File

@@ -382,6 +382,12 @@ namespace Jackett.Server.Controllers
logger.Warn($"A search request with tmdbid from {Request.HttpContext.Connection.RemoteIpAddress} was made but the indexer {CurrentIndexer.DisplayName} doesn't support it.");
return GetErrorXML(203, "Function Not Available: tmdbid is not supported for movie search by this indexer");
}
if (CurrentQuery.IsTVSearch && !CurrentIndexer.TorznabCaps.TvSearchTmdbAvailable)
{
logger.Warn($"A search request with tmdbid from {Request.HttpContext.Connection.RemoteIpAddress} was made but the indexer {CurrentIndexer.DisplayName} doesn't support it.");
return GetErrorXML(203, "Function Not Available: tmdbid is not supported for TV search by this indexer");
}
}
if (CurrentQuery.TvdbID != null)