Fix reddit changing IDs + prep version 3.1.1
authorNiki Roo <niki@nikiroo.be>
Wed, 26 Dec 2018 12:33:37 +0000 (13:33 +0100)
committerNiki Roo <niki@nikiroo.be>
Wed, 26 Dec 2018 12:33:37 +0000 (13:33 +0100)
VERSION
changelog.md
src/be/nikiroo/gofetch/support/Reddit.java

diff --git a/VERSION b/VERSION
index f0bb29e76388856b273698ae6064b0380ce5e5d2..3a3cd8cc8b079cb410a465d2925b9cbd703115cb 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.3.0
+1.3.1
index 66a7fc0abb9406d14ae31fc6e288793af10528fe..a3de2e1762f8261e8b5ab0e6231a9a44a71f5fa1 100644 (file)
@@ -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
 
index f5ae131474c83ab32c050cbbf1a5ce9dc1fd7cd0..599bb91f3b66283ff4cc11c9104787d52f359115 100644 (file)
@@ -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"));
                        }
                }