From 453b4310e2deea984182f6d3c78c974ba8a9f8d6 Mon Sep 17 00:00:00 2001 From: lolcat Date: Mon, 16 Oct 2023 19:45:11 -0400 Subject: fixed API bug --- api/v1/images.php | 3 ++- api/v1/music.php | 4 ++-- api/v1/news.php | 3 ++- api/v1/videos.php | 3 ++- api/v1/web.php | 3 ++- 5 files changed, 10 insertions(+), 6 deletions(-) (limited to 'api/v1') diff --git a/api/v1/images.php b/api/v1/images.php index 474e2dd..34510b4 100644 --- a/api/v1/images.php +++ b/api/v1/images.php @@ -11,7 +11,8 @@ $frontend = new frontend(); Captcha */ include "lib/captcha_gen.php"; -new captcha($frontend, false); +$null = null; +new captcha($null, $null, $null, "images", false); [$scraper, $filters] = $frontend->getscraperfilters( "images", diff --git a/api/v1/music.php b/api/v1/music.php index 7512ac0..3c30953 100644 --- a/api/v1/music.php +++ b/api/v1/music.php @@ -10,9 +10,9 @@ $frontend = new frontend(); /* Captcha */ -$null = null; include "lib/captcha_gen.php"; -new captcha($null, $null, $null, $null, false); +$null = null; +new captcha($null, $null, $null, "music", false); [$scraper, $filters] = $frontend->getscraperfilters( "music", diff --git a/api/v1/news.php b/api/v1/news.php index 97738fc..bd8678f 100644 --- a/api/v1/news.php +++ b/api/v1/news.php @@ -11,7 +11,8 @@ $frontend = new frontend(); Captcha */ include "lib/captcha_gen.php"; -new captcha($frontend, false); +$null = null; +new captcha($null, $null, $null, "news", false); [$scraper, $filters] = $frontend->getscraperfilters( "news", diff --git a/api/v1/videos.php b/api/v1/videos.php index 9277792..a42b29b 100644 --- a/api/v1/videos.php +++ b/api/v1/videos.php @@ -11,7 +11,8 @@ $frontend = new frontend(); Captcha */ include "lib/captcha_gen.php"; -new captcha($frontend, false); +$null = null; +new captcha($null, $null, $null, "videos", false); [$scraper, $filters] = $frontend->getscraperfilters( "videos", diff --git a/api/v1/web.php b/api/v1/web.php index c479149..61bf82a 100644 --- a/api/v1/web.php +++ b/api/v1/web.php @@ -11,7 +11,8 @@ $frontend = new frontend(); Captcha */ include "lib/captcha_gen.php"; -new captcha($frontend, false); +$null = null; +new captcha($null, $null, $null, "web", false); [$scraper, $filters] = $frontend->getscraperfilters( "web", -- cgit v1.2.3