X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fgofetch%2Fsupport%2FTooLinux.java;h=806133128eb2ec56111e0828a46ede739637d4ee;hb=31755801cf5c2e2502e1222928d56c11f64dbdfe;hp=c875783def6c450bedd7c4c306778461e808274c;hpb=071aedde2af16764e54ca78dccbb40a2cb0d9caf;p=gofetch.git diff --git a/src/be/nikiroo/gofetch/support/TooLinux.java b/src/be/nikiroo/gofetch/support/TooLinux.java index c875783..8061331 100644 --- a/src/be/nikiroo/gofetch/support/TooLinux.java +++ b/src/be/nikiroo/gofetch/support/TooLinux.java @@ -16,10 +16,15 @@ import be.nikiroo.gofetch.data.Comment; import be.nikiroo.gofetch.data.Story; import be.nikiroo.utils.StringUtils; +/** + * Support https://www.toolinux.com/. + * + * @author niki + */ public class TooLinux extends BasicSupport { @Override public String getDescription() { - return "TooLinux: Premier quotidien francophone d'actualité généraliste sur Linux, les logiciels libres et l'interopérabilité, depuis mars 2000."; + return "TooLinux: Actualité généraliste sur Linux et les logiciels libres"; } @Override @@ -38,6 +43,8 @@ public class TooLinux extends BasicSupport { String date = ""; String details = ""; String body = ""; + String author = ""; // nope + String categ = ""; // nope Element urlElement = article.getElementsByTag("a").first(); if (urlElement != null) { @@ -64,13 +71,12 @@ public class TooLinux extends BasicSupport { Element detailsElement = article.getElementsByClass("introduction") .first(); - details = "(" + date + ") "; if (detailsElement != null) { details += StringUtils.unhtml(detailsElement.text()).trim(); } - list.add(new Story(getType(), id, title, details, intUrl, extUrl, - body)); + list.add(new Story(getType(), id, title, author, date, categ, + details, intUrl, extUrl, body)); } return list;