Fix download order and comments/content storing
[gofetch.git] / src / be / nikiroo / gofetch / support / Slashdot.java
index 5b5612fba705a769e50f3cbbbb0216a295e5a956..6a5395498de5894657e39311cc68ee3b8f9529e2 100644 (file)
@@ -76,7 +76,7 @@ public class Slashdot extends BasicSupport {
        }
 
        @Override
-       public List<Comment> getComments(Story story) throws IOException {
+       public void fetch(Story story) throws IOException {
                List<Comment> comments = new ArrayList<Comment>();
 
                URL url = new URL(story.getUrlInternal());
@@ -87,7 +87,7 @@ public class Slashdot extends BasicSupport {
                        comments.addAll(getComments(listing));
                }
 
-               return comments;
+               story.setComments(comments);
        }
 
        private List<Comment> getComments(Element listing) {