Added Jsoup logging

This commit is contained in:
M66B 2023-08-17 09:55:36 +02:00
parent 1296a831e9
commit 60f0d83872
1 changed files with 5 additions and 2 deletions

View File

@ -1363,15 +1363,18 @@ public class EntityRule {
}
Element e = d.select(selector).first();
if (e == null)
if (e == null) {
notes = null;
else {
Log.w("Nothing selected Jsoup=" + selector);
} else {
notes = e.ownText();
if (!TextUtils.isEmpty(regex)) {
Pattern p = Pattern.compile(regex);
Matcher m = p.matcher(notes);
if (m.matches() && m.groupCount() > 0)
notes = m.group(1);
else
Log.w("Nothing selected regex=" + regex + " value=" + notes);
}
}
}