1 package net.pterodactylus.rhynodge.filters.comics;
3 import static com.google.common.base.Optional.absent;
4 import static java.util.Collections.emptyList;
5 import static java.util.stream.Collectors.toList;
9 import net.pterodactylus.rhynodge.filters.ComicSiteFilter;
11 import com.google.common.base.Optional;
12 import org.jsoup.nodes.Document;
15 * {@link ComicSiteFilter} implementation that can parse “Heldentage” comics.
17 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
19 public class HeldentageFilter extends ComicSiteFilter {
22 protected Optional<String> extractTitle(Document document) {
27 protected List<String> extractImageUrls(Document document) {
28 return document.select("#mod_heldentage a img").stream().map(element -> element.attr("src")).collect(toList());
32 protected List<String> extractImageComments(Document document) {