Fix image URL extraction of SMBC
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 4 May 2015 18:19:40 +0000 (20:19 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 4 May 2015 18:19:40 +0000 (20:19 +0200)
src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java

index e37f01a..f64028a 100644 (file)
@@ -43,7 +43,7 @@ public class SaturdayMorningBreakfastCerealComicFilter extends ComicSiteFilter {
 
        @Override
        protected List<String> 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();
        }