aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2026-05-20 11:05:41 -0400
committerlolcat <will@lolcat.ca>2026-05-20 11:05:41 -0400
commit95819bfe52ee4d7a79daf091b8d0e619a29ec352 (patch)
treeedfdc048ec2547800a6b0ec0487b42ad2b46c6b3
parente1e92d715ec22570f1bdd5a4cdf6ceecb5426428 (diff)
yep api fix
-rw-r--r--scraper/yep.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/scraper/yep.php b/scraper/yep.php
index c1855fb..682dd6f 100644
--- a/scraper/yep.php
+++ b/scraper/yep.php
@@ -449,8 +449,6 @@ class yep{
// add api key
$key_data = $this->backend->get_key();
- print_r($filters);
-
try{
$json =
@@ -504,6 +502,15 @@ class yep{
foreach($json["results"] as $item){
+ if(
+ $item["url"] === null ||
+ $item["url"] == ""
+ ){
+
+ // sometimes API fucks up
+ continue;
+ }
+
$out["web"][] = [
"title" => $item["title"],
"description" => $item["description"],
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage