+ private BufferedImage getCover(URL source) throws IOException {
+ InputStream in = Instance.getCache().open(source, this, true);
+ String images = getChapterContent(new URL(source.toString() + "?page="
+ + 1), in, 1);
+ if (!images.isEmpty()) {
+ int pos = images.indexOf('\n');
+ if (pos >= 0) {
+ images = images.substring(1, pos - 1);
+ return getImage(this, null, images);
+ }
+ }
+
+ return null;
+ }
+