Fix download order and comments/content storing
[gofetch.git] / src / be / nikiroo / gofetch / support / Pipedot.java
index 4d68fe7821df1c7b781d7ef02e52384384e44530..2436540f20c6c8748f9d4b8c6b693c4c985c45d1 100644 (file)
@@ -89,7 +89,7 @@ public class Pipedot 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());
@@ -100,7 +100,7 @@ public class Pipedot extends BasicSupport {
                        comments.addAll(getComments(listing.get(0)));
                }
 
-               return comments;
+               story.setComments(comments);
        }
 
        private List<Comment> getComments(Element listing) {