Fix weather segment display

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 <aleksandrs@ledovskis.lv>
This commit is contained in:
Aleksandrs Ļedovskis 2014-08-05 23:52:34 +03:00
parent b1a2b44db1
commit 75d2c62f62
1 changed files with 1 additions and 1 deletions

View File

@ -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',
}