compile group: "com.google.guava", name: "guava", version: "14.0-rc1"
compile group: "log4j", name: "log4j", version: "1.2.17"
compile group: "org.apache.httpcomponents", name: "httpclient", version: "4.4"
- compile group: "org.jsoup", name: "jsoup", version: "1.7.1"
+ compile group: "org.jsoup", name: "jsoup", version: "1.16.1"
compile group: "javax.mail", name: "mail", version: "1.4.6-rc1"
compile group: "org.apache.commons", name: "commons-lang3", version: "3.1"
compile group: "com.fasterxml.jackson.core", name: "jackson-core", version: "2.1.2"
override fun extractTitle(document: Document) = document.title().asOptional()
override fun extractImageUrls(document: Document) =
- document.getElementById("strip")
+ document.getElementById("strip")!!
.attr("src")
.let(::listOf)
override fun extractImageComments(document: Document) =
- document.getElementById("strip")
+ document.getElementById("strip")!!
.attr("title")
.let(::listOf)
override fun extractTitle(document: Document): Optional<String> = Optional.absent()
override fun extractImageUrls(document: Document): List<String> =
- listOf(document.select("#comicnav").first().nextSibling().nextSibling().attr("src"))
+ listOf(document.select("#comicnav").first()!!.nextSibling()!!.nextSibling()!!.attr("src"))
override fun extractImageComments(document: Document): List<String> = emptyList()
class SoggyCardboardComicFilter : ComicSiteFilter() {
override fun extractTitle(document: Document): Optional<String> =
- document.select(".ceo_latest_comics_widget li").first().text().asOptional()
+ document.select(".ceo_latest_comics_widget li").first()!!.text().asOptional()
override fun extractImageUrls(document: Document): List<String> =
listOf(document.select("#comic img").attr("src"))