apisearch: additional to #15015

add traktid, rageid, doubanid
note that the GUI search has yet to be updated to support keyword-id=value parsing so that presumably will happen in the future.
This commit is contained in:
Garfield69
2024-01-30 19:38:44 +13:00
parent e5500a0a4f
commit dbac35253c

View File

@@ -10,9 +10,12 @@ namespace Jackett.Common.Models.DTO
public int[] Category { get; set; }
public string[] Tracker { get; set; }
public string ImdbId { get; set; }
public int? DoubanID { get; set; }
public int? RageID { get; set; }
public int? TvdbId { get; set; }
public int? TmdbId { get; set; }
public int? TvMazeId { get; set; }
public int? TraktID { get; set; }
public static TorznabQuery ToTorznabQuery(ApiSearch request)
{
@@ -54,6 +57,9 @@ namespace Jackett.Common.Models.DTO
stringQuery.SearchTerm = queryStr;
stringQuery.Categories = request.Category ?? Array.Empty<int>();
stringQuery.DoubanID = request.DoubanID;
stringQuery.RageID = request.RageID;
stringQuery.TraktID = request.TraktID;
stringQuery.TmdbID = request.TmdbId;
stringQuery.TvdbID = request.TvdbId;
stringQuery.ImdbID = request.ImdbId;