Browse Source

why do you fucking do that naver

lolcat 1 month ago
parent
commit
50349d2390
1 changed files with 3 additions and 0 deletions
  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" => [