Extract comment from image
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 4 May 2015 18:19:57 +0000 (20:19 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 4 May 2015 18:19:57 +0000 (20:19 +0200)
src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java

index f64028a..fc5c4d9 100644 (file)
@@ -50,7 +50,8 @@ public class SaturdayMorningBreakfastCerealComicFilter extends ComicSiteFilter {
 
        @Override
        protected List<String> extractImageComments(Document document) {
-               return Collections.emptyList();
+               String imageComment = document.select("img#comic").get(0).attr("title");
+               return Arrays.asList(imageComment, "");
        }
 
 }