✨ Add watcher for Soggy Cardboard
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 15 Sep 2020 21:36:47 +0000 (23:36 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 15 Sep 2020 21:36:47 +0000 (23:36 +0200)
src/main/kotlin/net/pterodactylus/rhynodge/watchers/SoggyCardboardWatcher.kt [new file with mode: 0644]

diff --git a/src/main/kotlin/net/pterodactylus/rhynodge/watchers/SoggyCardboardWatcher.kt b/src/main/kotlin/net/pterodactylus/rhynodge/watchers/SoggyCardboardWatcher.kt
new file mode 100644 (file)
index 0000000..e68e218
--- /dev/null
@@ -0,0 +1,12 @@
+package net.pterodactylus.rhynodge.watchers
+
+import net.pterodactylus.rhynodge.filters.HtmlFilter
+import net.pterodactylus.rhynodge.filters.comics.SoggyCardboardComicFilter
+import net.pterodactylus.rhynodge.queries.HttpQuery
+import net.pterodactylus.rhynodge.triggers.NewComicTrigger
+
+class SoggyCardboardWatcher : DefaultWatcher(query, filters, trigger)
+
+private val query = HttpQuery("http://www.soggycardboard.com/")
+private val filters = listOf(HtmlFilter(), SoggyCardboardComicFilter())
+private val trigger = NewComicTrigger()