// update the GUI progress bar
//Element progress = thisThreadPage.select("a[href=#]:matchesOwn("+pageOfPattern.pattern()+")").first();
final Element progress = thisThreadPage.select("a[href=#]:matches("+pageOfPattern.pattern()+"), td.nav:matches("+pageOfPattern.pattern()+")").first();
if (progress != null) {
System.out.printf("%n" + progress.text().replace("�", "") + "%n"); // Print out the current page
Matcher pageOfMatcher = pageOfPattern.matcher(progress.text());
if (pageOfMatcher.find()) {
double current = Double.parseDouble(pageOfMatcher.group(1));
double end = Double.parseDouble(pageOfMatcher.group(2));
//System.out.println(current + " " + end);
view.setProgress((int) (current / end * 100));