ソースを参照

why do you fucking do that naver

lolcat 5 ヶ月 前
親
コミット
50349d2390
1 ファイル変更、3 行追加、0 行削除
  1. 3 0
      scraper/naver.php

+ 3 - 0
scraper/naver.php

@@ -599,6 +599,9 @@ class naver{
 		
 		
 		foreach($json["items"] as $image){
 		foreach($json["items"] as $image){
 			
 			
+			// why does it fucking do that
+			if($image["orgWidth"] === 0){ continue; }
+			
 			$out["image"][] = [
 			$out["image"][] = [
 				"title" => trim($image["title"], "."),
 				"title" => trim($image["title"], "."),
 				"source" => [
 				"source" => [