✨ Add watcher for Oglaf comics
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 20 Jan 2022 20:39:16 +0000 (21:39 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 20 Jan 2022 20:39:16 +0000 (21:39 +0100)
src/main/java/net/pterodactylus/rhynodge/watchers/OglafWatcher.kt [new file with mode: 0644]

diff --git a/src/main/java/net/pterodactylus/rhynodge/watchers/OglafWatcher.kt b/src/main/java/net/pterodactylus/rhynodge/watchers/OglafWatcher.kt
new file mode 100644 (file)
index 0000000..ea29e80
--- /dev/null
@@ -0,0 +1,13 @@
+package net.pterodactylus.rhynodge.watchers
+
+import net.pterodactylus.rhynodge.filters.HtmlFilter
+import net.pterodactylus.rhynodge.filters.comics.OglafComicSiteFilter
+import net.pterodactylus.rhynodge.mergers.ComicMerger
+import net.pterodactylus.rhynodge.queries.HttpQuery
+
+@Suppress("unused")
+class OglafWatcher : DefaultWatcher(query, filters, merger)
+
+private val query = HttpQuery("https://www.oglaf.com/")
+private val filters = listOf(HtmlFilter(), OglafComicSiteFilter())
+private val merger = ComicMerger()