From bce031dcb08744ec8812249435dc6c8879229308 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Wed, 26 Dec 2018 13:33:37 +0100 Subject: [PATCH] Fix reddit changing IDs + prep version 3.1.1 --- VERSION | 2 +- changelog.md | 5 ++++- src/be/nikiroo/gofetch/support/Reddit.java | 7 ++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index f0bb29e..3a3cd8c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.0 +1.3.1 diff --git a/changelog.md b/changelog.md index 66a7fc0..a3de2e1 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Gofetch +## Version 1.3.1 + +- Fix Redit changing IDs + ## Version 1.3.0 - Fix subtitles and too much content in EreNumerique @@ -9,7 +13,6 @@ - Lot of other small fixes - New tests based upon static "example" content (not dynamic) - Remove dead website PipeDot -- Fix Redit changing IDs ## Version 1.2.0 diff --git a/src/be/nikiroo/gofetch/support/Reddit.java b/src/be/nikiroo/gofetch/support/Reddit.java index f5ae131..599bb91 100644 --- a/src/be/nikiroo/gofetch/support/Reddit.java +++ b/src/be/nikiroo/gofetch/support/Reddit.java @@ -192,7 +192,12 @@ public class Reddit extends BasicSupport { if (elements.isEmpty()) { for (Element el : container.children()) { - elements.addAll(el.getElementsByClass("Comment")); + elements.addAll(el.getElementsByClass("s1ook3io-0")); + elements.addAll(el.getElementsByClass("s1ook3io-1")); + elements.addAll(el.getElementsByClass("s1ook3io-2")); + elements.addAll(el.getElementsByClass("s1ook3io-3")); + elements.addAll(el.getElementsByClass("s1ook3io-4")); + elements.addAll(el.getElementsByClass("s1ook3io-5")); } } -- 2.27.0