From 2913c58cecc26b699ec44c19f105f036f3dcb6a6 Mon Sep 17 00:00:00 2001 From: lolcat Date: Thu, 10 Aug 2023 22:54:37 -0400 Subject: added faceberg videos --- lib/frontend.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/frontend.php b/lib/frontend.php index 003c7cf..a127989 100644 --- a/lib/frontend.php +++ b/lib/frontend.php @@ -169,7 +169,7 @@ class frontend{ } $payload .= - htmlspecialchars($site["title"]) . + $this->highlighttext($keywords, $site["title"]) . ''; 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; } -- cgit v1.2.3