fix ddg bug with EOF result
This commit is contained in:
		
							parent
							
								
									9ca93f34c6
								
							
						
					
					
						commit
						1ca2626ad9
					
				| @ -612,6 +612,25 @@ class ddg{ | ||||
| 					} | ||||
| 				} | ||||
| 				 | ||||
| 				$title = | ||||
| 					$this->titledots( | ||||
| 						$this->fuckhtml | ||||
| 						->getTextContent( | ||||
| 							$item["t"] | ||||
| 						) | ||||
| 					); | ||||
| 				 | ||||
| 				if( | ||||
| 					$title == "EOF" && | ||||
| 					strpos( | ||||
| 						$item["c"], | ||||
| 						"google" | ||||
| 					) | ||||
| 				){ | ||||
| 					 | ||||
| 					continue; | ||||
| 				} | ||||
| 				 | ||||
| 				// parse search result
 | ||||
| 				$out["web"][] = [ | ||||
| 					"title" => | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 lolcat
						lolcat