Skip to content

Commit

Permalink
anidex: fix search by language. resolves #10930 (#10932)
Browse files Browse the repository at this point in the history
also updated group_id
  • Loading branch information
ilike2burnthing committed Jan 25, 2021
1 parent 5271179 commit 4945f98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Jackett.Common/Indexers/Anidex.cs
Expand Up @@ -123,6 +123,8 @@ public class Anidex : BaseWebIndexer
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;
Expand All @@ -148,7 +150,8 @@ protected override async Task<IEnumerable<ReleaseInfo>> PerformQuery(TorznabQuer
{ "q", query.SearchTerm ?? string.Empty },
{ "s", GetSortBy },
{ "o", GetOrder },
{ "group", "0" } // No group
{ "lang_id", GetLang },
{ "group_id", "0" } // No group
};

// Get specified categories
Expand Down

0 comments on commit 4945f98

Please sign in to comment.