summaryrefslogtreecommitdiff
path: root/api/v1
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2023-08-08 03:09:47 -0400
committerlolcat <will@lolcat.ca>2023-08-08 03:09:47 -0400
commit4559857380317d768ff8394db711eb5c894aa1f8 (patch)
tree2ed555b5ba104297642893ef5511d1d28f282842 /api/v1
parent7c771c82c8e03b337f9f03ae2d4afc25d3f0faca (diff)
added brave image+video support
Diffstat (limited to 'api/v1')
-rw-r--r--api/v1/images.php3
-rw-r--r--api/v1/news.php3
-rw-r--r--api/v1/videos.php3
-rw-r--r--api/v1/web.php3
4 files changed, 8 insertions, 4 deletions
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){