mirror of
				https://git.bakhai.co.in/FbIN/4Get.git
				synced 2025-11-04 03:51:32 +05:30 
			
		
		
		
	Synced
Hopefully this fixes bing images my fucking god - (b85820cbcd) fuiwhwehfuiewuf - (78aa2e198f)
This commit is contained in:
		
					parent
					
						
							
								5ff2b87c2e
							
						
					
				
			
			
				commit
				
					
						b4f6af4481
					
				
			
		
					 3 changed files with 8 additions and 8 deletions
				
			
		
							
								
								
									
										12
									
								
								proxy.php
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								proxy.php
									
										
									
									
									
								
							| 
						 | 
					@ -80,14 +80,14 @@ try{
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
		switch($_GET["s"]){
 | 
							switch($_GET["s"]){
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
			case "portrait": $req = "?w=50&h=90&p=0&qlt=90"; break;
 | 
								case "portrait": $req = "&w=50&h=90&p=0&qlt=90"; break;
 | 
				
			||||||
			case "landscape": $req = "?w=160&h=90&p=0&qlt=90"; break;
 | 
								case "landscape": $req = "&w=160&h=90&p=0&qlt=90"; break;
 | 
				
			||||||
			case "square": $req = "?w=90&h=90&p=0&qlt=90"; break;
 | 
								case "square": $req = "&w=90&h=90&p=0&qlt=90"; break;
 | 
				
			||||||
			case "thumb": $req = "?w=236&h=180&p=0&qlt=90"; break;
 | 
								case "thumb": $req = "&w=236&h=180&p=0&qlt=90"; break;
 | 
				
			||||||
			case "cover": $req = "?w=207&h=270&p=0&qlt=90"; break;
 | 
								case "cover": $req = "&w=207&h=270&p=0&qlt=90"; break;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		$proxy->stream_linear_image("https://" . $image["host"] . "/th/id/" . urlencode($id) . $req, "https://www.bing.com");
 | 
							$proxy->stream_linear_image("https://" . $image["host"] . "/th?id=" . rawurlencode($id) . $req, "https://www.bing.com");
 | 
				
			||||||
		die();
 | 
							die();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1969,7 +1969,7 @@ class ddg{
 | 
				
			||||||
			$id = $id[1];
 | 
								$id = $id[1];
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		return "https://" . $image["host"] . "/th/id/" . $id;
 | 
							return "https://" . $image["host"] . "/th?id=" . rawurlencode($id);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	private function bingratio($width, $height){
 | 
						private function bingratio($width, $height){
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -988,6 +988,6 @@ class qwant{
 | 
				
			||||||
			return $url;
 | 
								return $url;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		return "https://" . $image["host"] . "/th/id/" . $id;
 | 
							return "https://" . $image["host"] . "/th?id=" . rawurlencode($id);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue