Browse Source

[fix] fix xpath of google images

Noémi Ványi 8 years ago
parent
commit
c361811cb5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/google_images.py

+ 1 - 1
searx/engines/google_images.py

@@ -74,7 +74,7 @@ def response(resp):
     for result in dom.xpath('//div[@data-ved]'):
 
         try:
-            metadata = loads(''.join(result.xpath('./div[@class="rg_meta"]/text()')))
+            metadata = loads(''.join(result.xpath('./div[contains(@class, "rg_meta")]/text()')))
         except:
             continue