From 26560c6abc24368918d0a2578396c0019bb3152d Mon Sep 17 00:00:00 2001 From: oogee Date: Sat, 24 Nov 2018 21:45:22 +0200 Subject: [PATCH] improve poll parsing --- .../main/java/gr/thmmy/mthmmy/activities/topic/TopicParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicParser.java b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicParser.java index f383793e..40d2aadf 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicParser.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicParser.java @@ -540,7 +540,7 @@ public class TopicParser { entries.add(0, new Poll.Entry(optionName, voteCount)); } - Elements links = pollColumn.child(0).child(0).child(0).child(1).select("a"); + Elements links = pollColumn.select("td[style=padding-left: 15px;] > a"); if (links != null && links.size() > 0) { if (links.first().text().equals("Remove Vote") || links.first().text().equals("Αφαίρεση ψήφου")) removeVoteUrl = links.first().attr("href");