From: David ‘Bombe’ Roden Date: Mon, 4 May 2015 18:19:40 +0000 (+0200) Subject: Fix image URL extraction of SMBC X-Git-Tag: v2~193 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=96a90e583267bac087575aab4e3b3ba6ef5b876c;p=rhynodge.git Fix image URL extraction of SMBC --- 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 e37f01a..f64028a 100644 --- a/src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java +++ b/src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java @@ -43,7 +43,7 @@ public class SaturdayMorningBreakfastCerealComicFilter extends ComicSiteFilter { @Override protected List extractImageUrls(Document document) { - String imageUrl = document.select("#comicimage img").get(0).attr("src"); + String imageUrl = document.select("img#comic").get(0).attr("src"); String afterImageUrl = document.select("#aftercomic img").attr("src"); return FluentIterable.from(Arrays.asList(imageUrl, afterImageUrl)).filter(url -> url.length() > 0).toList(); }