From 4945f985734c276c068e806724532b0d9b08a8da Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Mon, 25 Jan 2021 23:59:11 +0000 Subject: [PATCH] anidex: fix search by language. resolves #10930 (#10932) also updated group_id --- src/Jackett.Common/Indexers/Anidex.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Indexers/Anidex.cs b/src/Jackett.Common/Indexers/Anidex.cs index 2f8d098d0..69430ad33 100644 --- a/src/Jackett.Common/Indexers/Anidex.cs +++ b/src/Jackett.Common/Indexers/Anidex.cs @@ -123,6 +123,8 @@ namespace Jackett.Common.Indexers configData.AddDynamic("orderrequestedfromsite", orderSelect); } + private string GetLang => ((SelectItem)configData.GetDynamic("languageid")).Value; + private string GetSortBy => ((SelectItem)configData.GetDynamic("sortrequestedfromsite")).Value; private string GetOrder => ((SelectItem)configData.GetDynamic("orderrequestedfromsite")).Value; @@ -148,7 +150,8 @@ namespace Jackett.Common.Indexers { "q", query.SearchTerm ?? string.Empty }, { "s", GetSortBy }, { "o", GetOrder }, - { "group", "0" } // No group + { "lang_id", GetLang }, + { "group_id", "0" } // No group }; // Get specified categories