aboutsummaryrefslogtreecommitdiffstats
path: root/scraper/yep.php
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/yep.php')
-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