File weather-fix-envcan.patch of Package kdebase4-workspace
From a36ffb6970fd644cf6034f78fa1467e69353d051 Mon Sep 17 00:00:00 2001
From: Tiernan Hubble <thubble+kdeinvent@thubble.ca>
Date: Sat, 28 Nov 2020 11:37:48 -0600
Subject: [PATCH] Fix Environment Canada weather domain.
---
dataengines/weather/ions/envcan/ion_envcan.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plasma/generic/dataengines/weather/ions/envcan/ion_envcan.cpp b/plasma/generic/dataengines/weather/ions/envcan/ion_envcan.cpp
index 6fcf7dbcd..cee0dbd6c 100644
--- a/plasma/generic/dataengines/weather/ions/envcan/ion_envcan.cpp
+++ b/plasma/generic/dataengines/weather/ions/envcan/ion_envcan.cpp
@@ -492,7 +492,7 @@ void EnvCanadaIon::getXMLSetup()
// If network is down, we need to spin and wait
- KIO::TransferJob *job = KIO::get(KUrl("http://dd.weatheroffice.ec.gc.ca/citypage_weather/xml/siteList.xml"), KIO::NoReload, KIO::HideProgressInfo);
+ KIO::TransferJob *job = KIO::get(KUrl("http://dd.weather.gc.ca/citypage_weather/xml/siteList.xml"), KIO::NoReload, KIO::HideProgressInfo);
m_xmlSetup.clear();
connect(job, SIGNAL(data(KIO::Job*,QByteArray)), this,
@@ -516,7 +516,7 @@ void EnvCanadaIon::getXMLData(const QString& source)
QString dataKey = source;
dataKey.remove("envcan|weather|");
- KUrl url = QString("http://dd.weatheroffice.ec.gc.ca/citypage_weather/xml/" + m_places[dataKey].territoryName + "/" + m_places[dataKey].cityCode + "_e.xml");
+ KUrl url = QString("http://dd.weather.gc.ca/citypage_weather/xml/" + m_places[dataKey].territoryName + "/" + m_places[dataKey].cityCode + "_e.xml");
//url="file:///home/spstarr/Desktop/s0000649_e.xml";
//kDebug() << "Will Try URL: " << url;
--
GitLab