diff options
author | lolcat <will@lolcat.ca> | 2023-10-16 19:45:11 -0400 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2023-10-16 19:45:11 -0400 |
commit | 453b4310e2deea984182f6d3c78c974ba8a9f8d6 (patch) | |
tree | d0b62822195575f9bc85f3686a96ab1ed4e5ae32 /api/v1 | |
parent | f67fadfa885c048aac42d9a703be6277f2987d29 (diff) |
fixed API bug
Diffstat (limited to 'api/v1')
-rw-r--r-- | api/v1/images.php | 3 | ||||
-rw-r--r-- | api/v1/music.php | 4 | ||||
-rw-r--r-- | api/v1/news.php | 3 | ||||
-rw-r--r-- | api/v1/videos.php | 3 | ||||
-rw-r--r-- | api/v1/web.php | 3 |
5 files changed, 10 insertions, 6 deletions
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", |