From 03204ad55d5efdb174dbdfacf1a73e38a2d21608 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 4 May 2015 20:19:57 +0200 Subject: [PATCH] Extract comment from image --- .../filters/comics/SaturdayMorningBreakfastCerealComicFilter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, ""); } } -- 2.7.4