diff options
author | lolcat <will@lolcat.ca> | 2023-08-10 22:54:37 -0400 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2023-08-10 22:54:37 -0400 |
commit | 2913c58cecc26b699ec44c19f105f036f3dcb6a6 (patch) | |
tree | c1058928956d0933caf6dff2c206e3580d8c1942 /lib | |
parent | bcc6ce58b304653c6c83d5307cd2648c30adfb85 (diff) |
added faceberg videos
Diffstat (limited to 'lib')
-rw-r--r-- | lib/frontend.php | 16 |
1 files changed, 15 insertions, 1 deletions
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"]) . '</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; } |