From 4559857380317d768ff8394db711eb5c894aa1f8 Mon Sep 17 00:00:00 2001 From: lolcat Date: Tue, 8 Aug 2023 03:09:47 -0400 Subject: added brave image+video support --- api/v1/images.php | 3 ++- api/v1/news.php | 3 ++- api/v1/videos.php | 3 ++- api/v1/web.php | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'api') diff --git a/api/v1/images.php b/api/v1/images.php index e05ba26..694658e 100644 --- a/api/v1/images.php +++ b/api/v1/images.php @@ -16,7 +16,8 @@ $get = $frontend->parsegetfilters($_GET, $filters); try{ echo json_encode( - $scraper->image($get) + $scraper->image($get), + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES ); }catch(Exception $e){ diff --git a/api/v1/news.php b/api/v1/news.php index 7e24247..775ef94 100644 --- a/api/v1/news.php +++ b/api/v1/news.php @@ -16,7 +16,8 @@ $get = $frontend->parsegetfilters($_GET, $filters); try{ echo json_encode( - $scraper->news($get) + $scraper->news($get), + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES ); }catch(Exception $e){ diff --git a/api/v1/videos.php b/api/v1/videos.php index 60c105a..225611a 100644 --- a/api/v1/videos.php +++ b/api/v1/videos.php @@ -16,7 +16,8 @@ $get = $frontend->parsegetfilters($_GET, $filters); try{ echo json_encode( - $scraper->video($get) + $scraper->video($get), + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES ); }catch(Exception $e){ diff --git a/api/v1/web.php b/api/v1/web.php index 7895183..7f6d769 100644 --- a/api/v1/web.php +++ b/api/v1/web.php @@ -21,7 +21,8 @@ if(!isset($_GET["extendedsearch"])){ try{ echo json_encode( - $scraper->web($get) + $scraper->web($get), + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES ); }catch(Exception $e){ -- cgit v1.2.3