Fixes synced
YEP API Fix (caa9a6c516) Startpage Pagination Fix (572730415a)
This commit is contained in:
parent
cc863f508e
commit
2f2a6ca7ed
2 changed files with 4 additions and 2 deletions
|
|
@ -408,6 +408,8 @@ class startpage{
|
||||||
//$html = file_get_contents("scraper/startpage.html");
|
//$html = file_get_contents("scraper/startpage.html");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//echo htmlspecialchars($html);
|
||||||
|
|
||||||
$this->detect_captcha($html);
|
$this->detect_captcha($html);
|
||||||
|
|
||||||
if(
|
if(
|
||||||
|
|
@ -1117,7 +1119,7 @@ class startpage{
|
||||||
"segment" => "organic",
|
"segment" => "organic",
|
||||||
"abd" => "0",
|
"abd" => "0",
|
||||||
"abe" => "0",
|
"abe" => "0",
|
||||||
"query" => $json["render"]["query"],
|
"query" => rawurldecode($json["render"]["query"]),
|
||||||
"page" => $page["number"],
|
"page" => $page["number"],
|
||||||
"qsr" => "all",
|
"qsr" => "all",
|
||||||
"qadf" => "none" // @ todo fix (??)
|
"qadf" => "none" // @ todo fix (??)
|
||||||
|
|
|
||||||
|
|
@ -440,7 +440,7 @@ class yep{
|
||||||
// parse filters
|
// parse filters
|
||||||
$filters = [
|
$filters = [
|
||||||
"query" => $search,
|
"query" => $search,
|
||||||
"limit" => 100
|
"limit" => 99 // for some reason they dont show anything sometimes at 100 results
|
||||||
];
|
];
|
||||||
|
|
||||||
if($get["nsfw"] == "no"){ $filters["safe_search"] = true; }
|
if($get["nsfw"] == "no"){ $filters["safe_search"] = true; }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue