From: David ‘Bombe’ Roden Date: Fri, 27 May 2016 22:15:47 +0000 (+0200) Subject: Parse HTML from HTTP request before processing it X-Git-Tag: v2~133 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f2b7556735b47c3f42197615db2edb68dd057248;p=rhynodge.git Parse HTML from HTTP request before processing it --- diff --git a/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wettercom/WetterComHamburgWatcher.kt b/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wettercom/WetterComHamburgWatcher.kt index 948ecc9..5b73d01 100644 --- a/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wettercom/WetterComHamburgWatcher.kt +++ b/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wettercom/WetterComHamburgWatcher.kt @@ -1,5 +1,6 @@ package net.pterodactylus.rhynodge.webpages.weather.wettercom +import net.pterodactylus.rhynodge.filters.HtmlFilter import net.pterodactylus.rhynodge.queries.HttpQuery import net.pterodactylus.rhynodge.watchers.DefaultWatcher @@ -10,6 +11,6 @@ import net.pterodactylus.rhynodge.watchers.DefaultWatcher */ class WetterComHamburgWatcher : DefaultWatcher( HttpQuery("http://www.wetter.com/wetter_aktuell/wettervorhersage/heute/deutschland/hamburg/DE0004130.html"), - listOf(WetterComFilter()), + listOf(HtmlFilter(), WetterComFilter()), WetterComTrigger() )