From: David ‘Bombe’ Roden Date: Fri, 3 May 2013 17:09:25 +0000 (+0200) Subject: Try different selector for main image. X-Git-Tag: v2~290 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=35ceffaab4f9b01ee4fa33f771eed38ad14f4b47;p=rhynodge.git Try different selector for main image. --- diff --git a/src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java b/src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java index 3b1f820..72e67dc 100644 --- a/src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java +++ b/src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java @@ -42,7 +42,7 @@ public class SaturdayMorningBreakfastCerealComicFilter extends ComicSiteFilter { @Override protected List extractImageUrls(Document document) { - String imageUrl = document.select(".comicboxcenter center img:eq(1)").attr("src"); + String imageUrl = document.select(".comicboxcenter img[usemap=#buttons] > img").attr("src"); String afterImageUrl = document.select("#aftercomic img").attr("src"); return FluentIterable.from(Arrays.asList(imageUrl, afterImageUrl)).filter(new Predicate() {