import org.jsoup.nodes.Node;
import org.jsoup.nodes.TextNode;
+import be.nikiroo.gofetch.data.Comment;
+import be.nikiroo.gofetch.data.Story;
+
class Phoronix extends BasicSupport {
@Override
public String getDescription() {
};
}
+ @Override
+ public void fetch(Story story) throws IOException {
+ super.fetch(story);
+
+ // First comment is a copy of the article, discard it
+ List<Comment> comments = story.getComments();
+ if (comments != null && comments.size() > 1) {
+ comments = comments.subList(1, comments.size());
+ }
+ story.setComments(comments);
+ }
}