From: David ‘Bombe’ Roden Date: Thu, 20 Jan 2022 20:39:16 +0000 (+0100) Subject: ✨ Add watcher for Oglaf comics X-Git-Tag: v2~55 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fd8f021eaf01a02a38bf6be58a931c6a8c7e9b41;p=rhynodge.git ✨ Add watcher for Oglaf comics --- 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 index 0000000..ea29e80 --- /dev/null +++ b/src/main/java/net/pterodactylus/rhynodge/watchers/OglafWatcher.kt @@ -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()