added faceberg videos

This commit is contained in:
lolcat 2023-08-10 22:54:37 -04:00
parent bcc6ce58b3
commit 2913c58cec
5 changed files with 864 additions and 20 deletions

View file

@ -169,7 +169,7 @@ class frontend{
}
$payload .=
htmlspecialchars($site["title"]) .
$this->highlighttext($keywords, $site["title"]) .
'</div>';
if($greentext !== null){
@ -903,6 +903,7 @@ class frontend{
"display" => "Scraper",
"option" => [
"yt" => "YouTube",
"fb" => "Facebook videos",
"ddg" => "DuckDuckGo",
"brave" => "Brave"//,
//"google" => "Google"
@ -972,6 +973,11 @@ class frontend{
$lib = new google();
break;
case "fb":
include "scraper/facebook.php";
$lib = new facebook();
break;
case "mojeek":
include "scraper/mojeek.php";
$lib = new mojeek();
@ -1269,6 +1275,14 @@ class frontend{
continue;
}
if(
$key == "older" ||
$key == "newer"
){
$value = date("Y-m-d", (int)$value);
}
$out[$key] = $value;
}