File 0001-Fix-Environment-Canada-weather-domain.patch of Package plasma5-workspace

From e27ba2d13c4d1f50eb3d83271a1654401d9e0035 Mon Sep 17 00:00:00 2001
From: Tiernan Hubble <thubble+kdeinvent@thubble.ca>
Date: Sat, 28 Nov 2020 17:37:48 +0000
Subject: [PATCH] Fix Environment Canada weather domain.

(cherry picked from commit a36ffb6970fd644cf6034f78fa1467e69353d051)
---
 dataengines/weather/ions/envcan/ion_envcan.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dataengines/weather/ions/envcan/ion_envcan.cpp b/dataengines/weather/ions/envcan/ion_envcan.cpp
index 0b1a141ab..cc82a7cc3 100644
--- a/dataengines/weather/ions/envcan/ion_envcan.cpp
+++ b/dataengines/weather/ions/envcan/ion_envcan.cpp
@@ -515,7 +515,7 @@ void EnvCanadaIon::getXMLSetup()
 
     // If network is down, we need to spin and wait
 
-    const QUrl url(QStringLiteral("http://dd.weatheroffice.ec.gc.ca/citypage_weather/xml/siteList.xml"));
+    const QUrl url(QStringLiteral("http://dd.weather.gc.ca/citypage_weather/xml/siteList.xml"));
 
     KIO::TransferJob* getJob = KIO::get(url, KIO::NoReload, KIO::HideProgressInfo);
 
@@ -543,7 +543,7 @@ void EnvCanadaIon::getXMLData(const QString& source)
     dataKey.remove(QStringLiteral("envcan|weather|"));
     const XMLMapInfo& place = m_places[dataKey];
 
-    const QUrl url(QLatin1String("http://dd.weatheroffice.ec.gc.ca/citypage_weather/xml/") + place.territoryName + QLatin1Char('/') + place.cityCode + QStringLiteral("_e.xml"));
+    const QUrl url(QLatin1String("http://dd.weather.gc.ca/citypage_weather/xml/") + place.territoryName + QLatin1Char('/') + place.cityCode + QStringLiteral("_e.xml"));
     //url="file:///home/spstarr/Desktop/s0000649_e.xml";
     //qCDebug(IONENGINE_ENVCAN) << "Will Try URL: " << url;
 
-- 
2.25.1

openSUSE Build Service is sponsored by