fixed url of a rss
authorJean-Philippe Orsini <orsinije@fr.ibm.com>
Thu, 2 Nov 2017 16:42:39 +0000 (17:42 +0100)
committerJean-Philippe Orsini <orsinije@fr.ibm.com>
Thu, 2 Nov 2017 16:42:39 +0000 (17:42 +0100)
layout the topics horizontally

war/src/main/java/pnews/servlet/HTML.java
war/src/main/resources/feeds.json

index 89ce7c5..42564e8 100644 (file)
@@ -131,18 +131,19 @@ public class HTML {
                        entities = provider.getEntityStats(catActive);
 
                        if (entities.size() > 0) {
-                               buf.append("Hot topics: ");
+                               buf.append("<nav>");
                                buf.append("<ul>");
                                i = 0;
                                for (EntityStat s: entities) {
                                        buf.append("<li>");
                                        buf.append(s.getEntity());
-                                       buf.append("</li>");
+                                       buf.append("</li>\n");
                                        i++;
                                        if (i > 10)
                                                break;
                                }                               
-                               buf.append("</ul>");
+                               buf.append("</ul>\n");
+                               buf.append("</nav>\n");
                        }
                 } catch (IllegalArgumentException | FeedException | IOException e2) {
                         LOG.log(Level.SEVERE, "Failed to get entities", e2);
index 0118278..aae327a 100644 (file)
                 "https://www.techworld.com/news/rss": { "categories": ["en_technologie"]},
                 "http://feeds.feedburner.com/TechCrunch/": { "categories": ["en_technologie"]},
                 "http://feeds.macrumors.com/MacRumors-All": { "categories": ["en_technologie"]},
-                "https://www.digitaltrends.com/rss-home/": { "categories": ["en_technologie"]},
+                "https://www.digitaltrends.com/computing/feed/": { "categories": ["en_technologie"]},
                 "http://www.zdnet.com/news/rss.xml": { "categories": ["en_technologie"]},
                 "https://www.androidheadlines.com/feed": { "categories": ["en_technologie"]},
                 "https://www.nasa.gov/rss/dyn/breaking_news.rss": { "categories": ["en_technologie"]},