Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Merge branch 'master' of https://github.com/yacy/yacy_search_server.git

Michael Peter Christen607b39b427f7
diff --cc htroot/yacysearchitem.java
index 3e83eb555,5ebc555f0..d88d14751
--- a/htroot/yacysearchitem.java
+++ b/htroot/yacysearchitem.java
@@@ -208,11 -239,12 +239,13 @@@ public class yacysearchitem
prop.putXML("content_image_url", faviconURL.toNormalform(true));
}
} else {
- prop.put("content_image", 1);
try {
prop.putXML("content_image_url", result.imageURL());
- } catch(UnsupportedOperationException e) {
+ prop.put("content_image", 1);
+ } catch (UnsupportedOperationException e) {
+ /* May occur when the document embedded images information is incomplete to retrieve at least an valid image url*/
- prop.put("content_image", 0);
+ prop.put("content_image", 0);
++
}
}