The branch, frodo has been updated
       via  f80472c27db68ec2bfbba6e6bb6c1e47ebe5db34 (commit)
      from  bb0cb87d9bcd7d8d9b4d884d01669eb4623108ec (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=f80472c27db68ec2bfbba6e6bb6c1e47ebe5db34

commit f80472c27db68ec2bfbba6e6bb6c1e47ebe5db34
Author: ronie <ronie>
Date:   Thu May 8 13:26:56 2014 +0200

    weather.wunderground 2.0.3

diff --git a/weather.wunderground/addon.xml b/weather.wunderground/addon.xml
index 4f37b99..abb57bb 100644
--- a/weather.wunderground/addon.xml
+++ b/weather.wunderground/addon.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="weather.wunderground" name="Weather Underground" version="2.0.2" 
provider-name="Team XBMC">
+<addon id="weather.wunderground" name="Weather Underground" version="2.0.3" 
provider-name="Team XBMC">
        <requires>
                <import addon="xbmc.python" version="2.1.0"/>
                <import addon="script.module.simplejson" version="2.0.10"/>
diff --git a/weather.wunderground/changelog.txt 
b/weather.wunderground/changelog.txt
index 2d3a74f..9dfc04a 100644
--- a/weather.wunderground/changelog.txt
+++ b/weather.wunderground/changelog.txt
@@ -1,3 +1,6 @@
+v2.0.3
+- fixed wind was undefined in some cases
+
 v2.0.2
 - add weather provider logo property
 
diff --git a/weather.wunderground/default.py b/weather.wunderground/default.py
index 8bc4bc9..f253012 100644
--- a/weather.wunderground/default.py
+++ b/weather.wunderground/default.py
@@ -406,6 +406,7 @@ def properties(data,loc,locid):
                     nfcast_e = 
data['forecast']['txt_forecast']['forecastday'][2*count+1]['fcttext'].split('.')
                     nfcast_m = 
data['forecast']['txt_forecast']['forecastday'][2*count+1]['fcttext_metric'].split('.')
                     for field in dfcast_e:
+                        wind = ''
                         if field.endswith('mph'): # find windspeed in mph
                             wind = field
                             break
@@ -414,6 +415,7 @@ def properties(data,loc,locid):
                             dfcast_m[dfcast_m.index(field)] = wind # replace 
windspeed in km/h with windspeed in mph
                             break
                     for field in nfcast_e:
+                        wind = ''
                         if field.endswith('mph'): # find windspeed in mph
                             wind = field
                             break

-----------------------------------------------------------------------

Summary of changes:
 weather.wunderground/addon.xml     |    2 +-
 weather.wunderground/changelog.txt |    3 +++
 weather.wunderground/default.py    |    2 ++
 3 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to