From: David ‘Bombe’ Roden Date: Mon, 4 May 2015 18:19:57 +0000 (+0200) Subject: Extract comment from image X-Git-Tag: v2~192 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=03204ad55d5efdb174dbdfacf1a73e38a2d21608;p=rhynodge.git Extract comment from 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 f64028a..fc5c4d9 100644 --- a/src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java +++ b/src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java @@ -50,7 +50,8 @@ public class SaturdayMorningBreakfastCerealComicFilter extends ComicSiteFilter { @Override protected List extractImageComments(Document document) { - return Collections.emptyList(); + String imageComment = document.select("img#comic").get(0).attr("title"); + return Arrays.asList(imageComment, ""); } }