diff options
| author | lolcat <will@lolcat.ca> | 2026-05-20 11:05:41 -0400 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2026-05-20 11:05:41 -0400 |
| commit | 95819bfe52ee4d7a79daf091b8d0e619a29ec352 (patch) | |
| tree | edfdc048ec2547800a6b0ec0487b42ad2b46c6b3 | |
| parent | e1e92d715ec22570f1bdd5a4cdf6ceecb5426428 (diff) | |
yep api fix
| -rw-r--r-- | scraper/yep.php | 11 |
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"], |
