- String dateAgo = post.getElementsByClass("hJDlLH")
- .first().text().trim();
- return new SimpleDateFormat("yyyy-MM-dd_HH-mm").format(getDate(dateAgo));
+ Element elAgo = post.getElementsByClass("hJDlLH").first();
+ if (elAgo == null)
+ elAgo = post.getElementsByClass("hDplaG").first();
+
+ if (elAgo != null) {
+ String dateAgo = elAgo.text().trim();
+ return new SimpleDateFormat("yyyy-MM-dd_HH-mm")
+ .format(getDate(dateAgo));
+ }
+
+ return "";