From 75d2c62f622ee898934e3193260a8bab99fc70fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksandrs=20=C4=BBedovskis?= Date: Tue, 5 Aug 2014 23:52:34 +0300 Subject: [PATCH] Fix weather segment display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Most likely a change on GitHub/Yahoo servers made it crash, when non-robot ready result page started to appear inside YQL processor. Using "raw.githubusercontent.com" URL helps and weather icon is again visible. Closes: Lokaltog/powerline#949 Signed-off-by: Aleksandrs Ļedovskis --- powerline/segments/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/segments/common.py b/powerline/segments/common.py index 79b24c52..22a76532 100644 --- a/powerline/segments/common.py +++ b/powerline/segments/common.py @@ -371,7 +371,7 @@ class WeatherSegment(ThreadedSegment): location_data['country_code']]) query_data = { 'q': - 'use "http://github.com/yql/yql-tables/raw/master/weather/weather.bylocation.xml" as we;' + 'use "https://raw.githubusercontent.com/yql/yql-tables/master/weather/weather.bylocation.xml" as we;' 'select * from we where location="{0}" and unit="c"'.format(self.location).encode('utf-8'), 'format': 'json', }