Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Newsfeed for the surftips
allo722681603727
diff --git a/htroot/Surftips.html b/htroot/Surftips.htmlindex e8a3adb97..7c45d4c4a 100644--- a/htroot/Surftips.html+++ b/htroot/Surftips.html@@ -4,6 +4,7 @@<title>YaCy '#[clientname]#': Surftips</title><meta name="keywords" content="YaCy P2P peer-to-peer Surftips Social Bookmarking Link Voting" /><meta name="description" content="Surftips provided by the YaCy peer-to-peer network using public bookmarks, link votes and crawl start points" />+ <link rel="alternate" type="application/rss+xml" title="YaCy Surftips" href="Surftips.rss" />#%env/templates/metas.template%#<script type="text/javascript">//<![CDATA[diff --git a/htroot/Surftips.java b/htroot/Surftips.javaindex 7c9e1cd1f..ed87a08ee 100644--- a/htroot/Surftips.java+++ b/htroot/Surftips.java@@ -312,10 +312,12 @@ public class Surftips {// add/subtract votes and write recordif (entry != null) {urlhash = plasmaURL.urlHash(url);- if (urlhash == null) {- System.out.println("Surftips: bad url '" + url + "' from news record " + record.toString());- continue;- }+ if (urlhash == null)+ urlhash=plasmaURL.urlHash("http://"+url);+ if(urlhash==null){+ System.out.println("Surftips: bad url '" + url + "' from news record " + record.toString());+ continue;+ }if ((vote = (Integer) negativeHashes.get(urlhash)) != null) {score = Math.max(0, score - vote.intValue()); // do not go below zero}diff --git a/htroot/Surftips.rss b/htroot/Surftips.rssnew file mode 100644index 000000000..9d71abc47--- /dev/null+++ b/htroot/Surftips.rss@@ -0,0 +1,30 @@+<?xml version="1.0"?>+<?xml-stylesheet type='text/xsl' href='/yacysearch.xsl' version='1.0'?>+<rss version="2.0"+ xmlns:yacySurftips="http://www.yacy.net/yacy/surftips"+ xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">+ <channel>+ #(surftips)#::+ <title>YaCy Surftips</title>+ <description>autogenerated Surftips</description>+ <image>+ <url>#[rssYacyImageURL]#</url>+ <title>YaCy Surftips</title>+ </image>+ <opensearch:totalResults>#[results]#</opensearch:totalResults>+ <opensearch:startIndex>1</opensearch:startIndex>+ <opensearch:itemsPerPage>#[results]#</opensearch:itemsPerPage>+ <opensearch:link rel="search" href="opensearchdescription.xml" type="application/opensearchdescription+xml"/>+ <opensearch:Query role="request" searchTerms="" />+ #{results}#+ <item>+ <title><![CDATA[#[title]#]]></title>+ <link>#[url]#</link>+ <description><![CDATA[#[description]#]]></description>+ <guid>#[urlhash]#</guid>+ </item>+ #{/results}#+ ::+ #(/surftips)#+ </channel>+</rss>\ No newline at end of file