git://git.nikiroo.be
/
gofetch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New website supported: Ère Numérique FR
[gofetch.git]
/
src
/
be
/
nikiroo
/
gofetch
/
support
/
TooLinux.java
diff --git
a/src/be/nikiroo/gofetch/support/TooLinux.java
b/src/be/nikiroo/gofetch/support/TooLinux.java
index c875783def6c450bedd7c4c306778461e808274c..806133128eb2ec56111e0828a46ede739637d4ee 100644
(file)
--- 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;
import be.nikiroo.gofetch.data.Story;
import be.nikiroo.utils.StringUtils;
+/**
+ * Support <a href="https://www.toolinux.com/">https://www.toolinux.com/</a>.
+ *
+ * @author niki
+ */
public class TooLinux extends BasicSupport {
@Override
public String getDescription() {
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
}
@Override
@@
-38,6
+43,8
@@
public class TooLinux extends BasicSupport {
String date = "";
String details = "";
String body = "";
String date = "";
String details = "";
String body = "";
+ String author = ""; // nope
+ String categ = ""; // nope
Element urlElement = article.getElementsByTag("a").first();
if (urlElement != null) {
Element urlElement = article.getElementsByTag("a").first();
if (urlElement != null) {
@@
-64,13
+71,12
@@
public class TooLinux extends BasicSupport {
Element detailsElement = article.getElementsByClass("introduction")
.first();
Element detailsElement = article.getElementsByClass("introduction")
.first();
- details = "(" + date + ") ";
if (detailsElement != null) {
details += StringUtils.unhtml(detailsElement.text()).trim();
}
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;
}
return list;