From 19e35a9126c8ecc8f10b811e4be571aca8b88edc Mon Sep 17 00:00:00 2001 From: reger Date: Mon, 11 Aug 2014 21:46:39 +0200 Subject: [PATCH] add type attribute to atom feed tag (for /yacysearch.atom) --- htroot/yacysearchitem.atom | 2 +- htroot/yacysearchitem.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/htroot/yacysearchitem.atom b/htroot/yacysearchitem.atom index f75f3f73c..e4af642c5 100644 --- a/htroot/yacysearchitem.atom +++ b/htroot/yacysearchitem.atom @@ -1,6 +1,6 @@ #(content)#:: #[title-xml]# - + #[description-xml]# #[date822]# diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.java index 0e49af506..d21e38d9c 100644 --- a/htroot/yacysearchitem.java +++ b/htroot/yacysearchitem.java @@ -227,6 +227,7 @@ public class yacysearchitem { prop.put("content_description", desc); prop.putXML("content_description-xml", desc); prop.putJSON("content_description-json", desc); + prop.put("content_mimetype",result.getNode().mime()); // for atom type attribute final HeuristicResult heuristic = theSearch.getHeuristic(result.hash()); if (heuristic == null) { prop.put("content_heuristic", 0);