mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
@@ -87,6 +87,16 @@ namespace Jackett.Common.Indexers
|
|||||||
Language = "en-US";
|
Language = "en-US";
|
||||||
Type = "private";
|
Type = "private";
|
||||||
|
|
||||||
|
var sort = new ConfigurationData.SingleSelectConfigurationItem("Sort requested from site", new Dictionary<string, string>
|
||||||
|
{
|
||||||
|
{"time", "created"},
|
||||||
|
{"size", "size"},
|
||||||
|
{"seeders", "seeders"},
|
||||||
|
{"name", "title"}
|
||||||
|
})
|
||||||
|
{ Value = "time" };
|
||||||
|
configData.AddDynamic("sort", sort);
|
||||||
|
|
||||||
configData.AddDynamic("freeleech", new BoolConfigurationItem("Search freeleech only") { Value = false });
|
configData.AddDynamic("freeleech", new BoolConfigurationItem("Search freeleech only") { Value = false });
|
||||||
|
|
||||||
AddCategoryMapping(72, TorznabCatType.Movies, "Movies");
|
AddCategoryMapping(72, TorznabCatType.Movies, "Movies");
|
||||||
@@ -201,6 +211,8 @@ namespace Jackett.Common.Indexers
|
|||||||
if (((BoolConfigurationItem)configData.GetDynamic("freeleech")).Value)
|
if (((BoolConfigurationItem)configData.GetDynamic("freeleech")).Value)
|
||||||
qc.Add("free", "on");
|
qc.Add("free", "on");
|
||||||
|
|
||||||
|
qc.Add("o", ((SingleSelectConfigurationItem)configData.GetDynamic("sort")).Value);
|
||||||
|
|
||||||
var searchUrl = SearchUrl + "?" + qc.GetQueryString();
|
var searchUrl = SearchUrl + "?" + qc.GetQueryString();
|
||||||
var response = await RequestWithCookiesAndRetryAsync(searchUrl, referer: SearchUrl);
|
var response = await RequestWithCookiesAndRetryAsync(searchUrl, referer: SearchUrl);
|
||||||
var results = response.ContentString;
|
var results = response.ContentString;
|
||||||
|
Reference in New Issue
Block a user