mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user