From: David ‘Bombe’ Roden Date: Thu, 11 Apr 2024 09:46:03 +0000 (+0200) Subject: ✨ Add watcher for free games in the Epic Games store X-Git-Tag: v2^2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=61e57c8f09c9cf7a5513eaab398e9b05534b89ef;p=rhynodge.git ✨ Add watcher for free games in the Epic Games store --- diff --git a/src/main/kotlin/net/pterodactylus/rhynodge/watchers/EpicGamesWatcher.kt b/src/main/kotlin/net/pterodactylus/rhynodge/watchers/EpicGamesWatcher.kt new file mode 100644 index 0000000..e6ed542 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/rhynodge/watchers/EpicGamesWatcher.kt @@ -0,0 +1,12 @@ +package net.pterodactylus.rhynodge.watchers + +import net.pterodactylus.rhynodge.filters.JsonFilter +import net.pterodactylus.rhynodge.filters.webpages.epicgames.EpicGamesFilter +import net.pterodactylus.rhynodge.filters.webpages.epicgames.EpicGamesMerger +import net.pterodactylus.rhynodge.queries.HttpQuery + +class EpicGamesWatcher : DefaultWatcher(query, filters, merger) + +private val query = HttpQuery("https://store-site-backend-static-ipv4.ak.epicgames.com/freeGamesPromotions?locale=en-US&country=DE&allowCountries=DE") +private val filters = listOf(JsonFilter(), EpicGamesFilter()) +private val merger = EpicGamesMerger()