diff options
author | lolcat <will@lolcat.ca> | 2023-09-13 09:01:23 -0400 |
---|---|---|
committer | lolcat <will@lolcat.ca> | 2023-09-13 09:01:23 -0400 |
commit | edc42ea35d05b536c2bebfcb78d1bf6007445e85 (patch) | |
tree | 425bef04d71fb8b6585906355a866d1f2f5c321b /scraper/google.php | |
parent | 71a61304b0072694174af559368a10b69d1e21e4 (diff) |
added autocomplete
Diffstat (limited to 'scraper/google.php')
-rw-r--r-- | scraper/google.php | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/scraper/google.php b/scraper/google.php index d0e90ca..ca77231 100644 --- a/scraper/google.php +++ b/scraper/google.php @@ -1616,21 +1616,23 @@ class google{ $imgvl ); - $imgvl = $imgvl[1]; - - $params["async"] = "_id:islrg_c,_fmt:html"; - $params["asearch"] = "ichunklite"; - $params["ved"] = $ved; - $params["vet"] = "1" . $ved . "..i"; - $params["start"] = 100; - $params["ijn"] = 1; - $params["imgvl"] = $imgvl; - - $out["npt"] = - $this->nextpage->store( - json_encode($params), - "images" - ); + if(isset($imgvl[1])){ + $imgvl = $imgvl[1]; + + $params["async"] = "_id:islrg_c,_fmt:html"; + $params["asearch"] = "ichunklite"; + $params["ved"] = $ved; + $params["vet"] = "1" . $ved . "..i"; + $params["start"] = 100; + $params["ijn"] = 1; + $params["imgvl"] = $imgvl; + + $out["npt"] = + $this->nextpage->store( + json_encode($params), + "images" + ); + } } } |