.flatMap { it.select("picture.comic-image source:first-child") }
.map { it.attr("srcset") }
- override fun extractImageComments(document: Document) = emptyList<String>()
+ override fun extractImageComments(document: Document) =
+ listOf(document.select(".comic-caption-container").text())
}
override val resource = "bex-and-keit.html"
override val expectedComics = listOf(
ComicState.Comic("")
- .add(ComicState.Strip("https://cdn.sanity.io/images/4h3kafsm/production/fbf3f2a13434998df21b658b536e501f86af6224-1109x1399.jpg?w=672&fit=max", ""))
+ .add(ComicState.Strip("https://cdn.sanity.io/images/4h3kafsm/production/fbf3f2a13434998df21b658b536e501f86af6224-1109x1399.jpg?w=672&fit=max", "It's that time of the year again. One new comic every day, all of October! (God willing)"))
.add(ComicState.Strip("https://cdn.sanity.io/images/4h3kafsm/production/8bb1efb285d5fa42e79c6dd6ebdb165e7a5c3229-1109x1399.jpg?w=672&fit=max", ""))
.add(ComicState.Strip("https://cdn.sanity.io/images/4h3kafsm/production/65a2d010ba31e5e4647c3594bfb3beb59fcf7a87-1109x1399.jpg?w=672&fit=max", ""))
)