The branch, eden-pre has been updated
       via  ed157c7e9a70990beb93eda6c32c6751b1e175c6 (commit)
      from  37f417801a7c033920323b93285367cd552ad586 (commit)

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

commit ed157c7e9a70990beb93eda6c32c6751b1e175c6
Author: amet <[email protected]>
Date:   Fri Nov 18 20:00:33 2011 +0400

    [weather.worldweatheronline] -v1.0.5
    
    - fix: display region/state if it exists

diff --git a/weather.worldweatheronline/addon.xml 
b/weather.worldweatheronline/addon.xml
index 93e056f..266a8e8 100644
--- a/weather.worldweatheronline/addon.xml
+++ b/weather.worldweatheronline/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="weather.worldweatheronline"
        name="World Weather Online"
-       version="1.0.4"
+       version="1.0.5"
        provider-name="Team XBMC">
   <requires>
     <import addon="xbmc.python" version="2.0"/>
diff --git a/weather.worldweatheronline/changelog.txt 
b/weather.worldweatheronline/changelog.txt
index e6e2ffb..0deaa3b 100644
--- a/weather.worldweatheronline/changelog.txt
+++ b/weather.worldweatheronline/changelog.txt
@@ -1,3 +1,6 @@
+1.0.5
+- fix: display region/state if it exists
+
 1.0.4
 - set UV Index to blank
 - handle sunny/clear properly
diff --git a/weather.worldweatheronline/default.py 
b/weather.worldweatheronline/default.py
index 1e074ba..c43b09c 100644
--- a/weather.worldweatheronline/default.py
+++ b/weather.worldweatheronline/default.py
@@ -109,7 +109,10 @@ def location(string):
   query   = fetch( SEARCH_URL % (DEVELOPER_KEY, string))
   locations = query.getElementsByTagName("result")
   for location in locations:
-    loc.append("%s,%s" % (get_elements(location, "areaName"), 
get_elements(location, "country")))
+    try:
+      loc.append("%s,%s,%s" % (get_elements(location, "areaName"), 
get_elements(location, "region"), get_elements(location, "country")))
+    except:
+      loc.append("%s,%s" % (get_elements(location, "areaName"), 
get_elements(location, "country")))
   return loc
 
 def forecast(city):

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

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


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to