🐛 Add missing comic commit for Bex and Keit
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 2 Oct 2025 13:42:01 +0000 (15:42 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 2 Oct 2025 13:42:01 +0000 (15:42 +0200)
src/main/kotlin/net/pterodactylus/rhynodge/filters/comics/BexAndKeitComicFilter.kt
src/test/kotlin/net/pterodactylus/rhynodge/filters/comics/BexAndKeitComicFilterTest.kt

index 1d7c241..670aee8 100644 (file)
@@ -15,6 +15,7 @@ class BexAndKeitComicFilter : ComicSiteFilter() {
                        .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())
 
 }
index db1da31..bbcda41 100644 (file)
@@ -9,7 +9,7 @@ class BexAndKeitComicFilterTest : ComicSiteFilterTest() {
        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", ""))
        )