diff --git a/htroot/api/feed.xml b/htroot/api/feed.xml new file mode 100644 index 000000000..240028d12 --- /dev/null +++ b/htroot/api/feed.xml @@ -0,0 +1,21 @@ + + + + + +#[channel_title]# +#[channel_description]# +#[channel_pubDate]# + + +#{item}# + +#[title]# +#[link]# +#[description]# +#[pubDate]# +#[guid]# + +#{/item}# + + diff --git a/htroot/rssTerminal.html b/htroot/rssTerminal.html index e08591f79..5da249751 100755 --- a/htroot/rssTerminal.html +++ b/htroot/rssTerminal.html @@ -123,7 +123,14 @@ function idlepingExec() { } function load() { - getRSS("/api/feed.rss?count=80&set=" + set + "&requestCount=" + requestCount + "&time=" + (new Date()).getTime()); + /* Check for Internet Explorer to use feed.xml instead of feed.rss fixing a problem with reading from the RSS Feed file which results in a null reference */ + /* Problem is described in the forums and should be fixed by changing the MIME-Type for .rss files in the YaCy HTTPd */ + if (navigator.appName=="Microsoft Internet Explorer") + { + getRSS("/api/feed.xml?count=80&set=" + set + "&requestCount=" + requestCount + "&time=" + (new Date()).getTime()); + } else { + getRSS("/api/feed.rss?count=80&set=" + set + "&requestCount=" + requestCount + "&time=" + (new Date()).getTime()); + } requestCount++; }