From 45ec9e042ad99d6421c946129beb928e3f6eaa5b Mon Sep 17 00:00:00 2001 From: Thodoris1999 Date: Sat, 1 Sep 2018 14:23:09 +0300 Subject: [PATCH] add edit functionality for greek --- .../java/gr/thmmy/mthmmy/activities/topic/TopicParser.java | 4 ++++ 1 file changed, 4 insertions(+) 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 6563a715..83b2dfe5 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 @@ -249,6 +249,10 @@ public class TopicParser { p_deletePostURL = postDelete.attr("href"); } + Element postEdit = thisRow.select("a:has(img[alt='Αλλαγή'])").first(); + if (postEdit != null) + p_editPostURL = postEdit.attr("href"); + //Finds post's submit date Element postDate = thisRow.select("div.smalltext:matches(στις:)").first(); p_postDate = postDate.text();