mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Add support for movie-search
This commit is contained in:
@@ -131,10 +131,13 @@ namespace Jackett.Models
|
||||
|
||||
if (query["cat"] != null)
|
||||
{
|
||||
q.Categories = query["cat"].Split(',').Select(s => int.Parse(s)).ToArray();
|
||||
q.Categories = query["cat"].Split(',').Where(s => !string.IsNullOrWhiteSpace(s)).Select(s => int.Parse(s)).ToArray();
|
||||
}else
|
||||
{
|
||||
q.Categories = new int[0];
|
||||
if (q.QueryType == "movie" && string.IsNullOrWhiteSpace(query["imdbid"]))
|
||||
q.Categories = new int[] { TorznabCatType.Movies.ID };
|
||||
else
|
||||
q.Categories = new int[0];
|
||||
}
|
||||
|
||||
if (query["extended"] != null)
|
||||
@@ -151,6 +154,8 @@ namespace Jackett.Models
|
||||
q.Offset = ParseUtil.CoerceInt(query["offset"]);
|
||||
}
|
||||
|
||||
q.ImdbID = query["imdbid"];
|
||||
|
||||
int rageId;
|
||||
if (int.TryParse(query["rid"], out rageId))
|
||||
{
|
||||
|
Reference in New Issue
Block a user