diff --git a/setup.py b/setup.py index ef5aa58..de86c51 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="simple_dwd_weatherforecast", - version="2.1.3", + version="2.1.4", author="Max Fermor", description="A simple tool to retrieve a weather forecast from DWD OpenData", long_description=long_description, diff --git a/simple_dwd_weatherforecast/dwdforecast.py b/simple_dwd_weatherforecast/dwdforecast.py index 890526a..4995da4 100644 --- a/simple_dwd_weatherforecast/dwdforecast.py +++ b/simple_dwd_weatherforecast/dwdforecast.py @@ -969,7 +969,7 @@ def download_large_kml(self, stationid): # Check if content has updated headers = {"If-None-Match": self.etags[url] if url in self.etags else ""} # type: ignore r = httpx.head( - "https://opendata.dwd.de/weather/local_forecasts/mos/MOSMIX_S/all_stations/kml/MOSMIX_S_LATEST_240.kmz", + url, headers=headers, ) if r.status_code == 304: