1
0
Эх сурвалжийг харах

why do you fucking do that naver

lolcat 1 сар өмнө
parent
commit
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){
 			
+			// why does it fucking do that
+			if($image["orgWidth"] === 0){ continue; }
+			
 			$out["image"][] = [
 				"title" => trim($image["title"], "."),
 				"source" => [