TooLinux: details and content were inversed
authorNiki Roo <niki@nikiroo.be>
Fri, 23 Mar 2018 22:28:57 +0000 (23:28 +0100)
committerNiki Roo <niki@nikiroo.be>
Fri, 23 Mar 2018 22:28:57 +0000 (23:28 +0100)
src/be/nikiroo/gofetch/support/TooLinux.java

index 806133128eb2ec56111e0828a46ede739637d4ee..0cc4c6cf58839d9646ad5d567f48767dfdff068e 100644 (file)
@@ -69,10 +69,10 @@ public class TooLinux extends BasicSupport {
                                id = intUrl.replace("/", "_");
                        }
 
-                       Element detailsElement = article.getElementsByClass("introduction")
+                       Element bodyElement = article.getElementsByClass("introduction")
                                        .first();
-                       if (detailsElement != null) {
-                               details += StringUtils.unhtml(detailsElement.text()).trim();
+                       if (bodyElement != null) {
+                               body = StringUtils.unhtml(bodyElement.text()).trim();
                        }
 
                        list.add(new Story(getType(), id, title, author, date, categ,