From: Niki Roo Date: Fri, 1 May 2020 11:05:46 +0000 (+0200) Subject: e621: better title X-Git-Url: http://git.nikiroo.be/?p=nikiroo-utils.git;a=commitdiff_plain;h=36c35b92f704ed40f3ce80501dc96cce73d39ceb e621: better title --- diff --git a/supported/E621.java b/supported/E621.java index c3a261b..602cd36 100644 --- a/supported/E621.java +++ b/supported/E621.java @@ -186,7 +186,7 @@ class E621 extends BasicSupport { } source = new URL(base + "/pools/" + poolNumber); } catch (NumberFormatException e) { - // Not a simple ppol, skip + // Not a simple pool, skip } catch (MalformedURLException e) { // Cannot happen } @@ -247,19 +247,19 @@ class E621 extends BasicSupport { title = el.text().trim(); } - for (String s : new String[] { "e621", "-", "e621" }) { + for (String s : new String[] { "e621", "-", "e621", "Pool", "-" }) { if (title.startsWith(s)) { title = title.substring(s.length()).trim(); } if (title.endsWith(s)) { title = title.substring(0, title.length() - s.length()).trim(); } - } if (isSearchOrSet(getSource())) { title = title.isEmpty() ? "e621" : "[e621] " + title; } + return title; }