Browse Source

why do you fucking do that naver

lolcat 1 tháng trước cách đây
mục cha
commit
50349d2390
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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" => [