mirror of
https://git.lolcat.ca/lolcat/4get.git
synced 2024-11-08 17:43:07 -05:00
remove debug print
This commit is contained in:
parent
7e893a15c1
commit
61ef956120
2 changed files with 12 additions and 12 deletions
|
@ -437,18 +437,20 @@ class mojeek{
|
|||
}
|
||||
|
||||
}else{
|
||||
|
||||
$search = $get["s"];
|
||||
if(strlen($search) === 0){
|
||||
|
||||
throw new Exception("Search term is empty!");
|
||||
}
|
||||
|
||||
$proxy = $this->backend->get_ip();
|
||||
$lang = $get["lang"];
|
||||
$country = $get["country"];
|
||||
$region = $get["region"];
|
||||
$domain = $get["domain"];
|
||||
$focus = $get["focus"];
|
||||
|
||||
if(strlen($search) === 0){
|
||||
|
||||
throw new Exception("Search term is empty!");
|
||||
}
|
||||
|
||||
$params = [
|
||||
"q" => $search,
|
||||
"t" => 20, // number of results/page
|
||||
|
@ -488,8 +490,6 @@ class mojeek{
|
|||
$params["si"] = $domain;
|
||||
}
|
||||
|
||||
$proxy = $this->backend->get_ip();
|
||||
|
||||
try{
|
||||
$html =
|
||||
$this->get(
|
||||
|
@ -1119,9 +1119,11 @@ class mojeek{
|
|||
|
||||
// parse big node information
|
||||
$data["author"] =
|
||||
htmlspecialchars_decode(
|
||||
$this->fuckhtml
|
||||
->getTextContent(
|
||||
$a[0]["innerHTML"]
|
||||
)
|
||||
);
|
||||
}else{
|
||||
|
||||
|
|
|
@ -45,8 +45,6 @@ class wiby{
|
|||
$url .= "?" . $get;
|
||||
}
|
||||
|
||||
print_r([$proxy, $url]);
|
||||
|
||||
curl_setopt($curlproc, CURLOPT_URL, $url);
|
||||
|
||||
curl_setopt($curlproc, CURLOPT_ENCODING, ""); // default encoding
|
||||
|
|
Loading…
Reference in a new issue