The branch, eden-pre has been updated
       via  509a1b2f07994bf11b6c34abfaf1d14d1fc24013 (commit)
      from  6c99d12b2d5cbf14a6cdd85ebe3f158ef574723f (commit)

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

commit 509a1b2f07994bf11b6c34abfaf1d14d1fc24013
Author: amet <[email protected]>
Date:   Tue Nov 15 21:27:51 2011 +0400

    [weather.worldweatheronline] -v1.0.2
    
    - updated description
    - fix: day string conversion will fail on non EN OS localization
    - cosmetic fixes

diff --git a/weather.worldweatheronline/addon.xml 
b/weather.worldweatheronline/addon.xml
index a9d1571..a0d99bc 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="weather.worldweatheronline"
-       version="1.0.1"
+       name="World Weather Online"
+       version="1.0.2"
        provider-name="Team XBMC">
   <requires>
     <import addon="xbmc.python" version="2.0"/>
@@ -9,8 +9,8 @@
   <extension point="xbmc.python.weather"
              library="default.py" />
   <extension point="xbmc.addon.metadata">
-    <summary lang="en"></summary>
-    <description lang="en"></description>
+    <summary lang="en">Weather information from 
http://www.worldweatheronline.com</summary>
+    <description lang="en">World Weather Online provides global weather 
forecast and weather content for websites, businesses and travel industry. They 
specialize in worldwide City and Town, Sailing, Hill and Mountain, Ski and 
Sports weather. They cover over 2 million worldwide cities. Their weather 
forecast is trusted and used from SME's to large corporate 
clients.</description>
     <platform>all</platform>
   </extension>
-</addon>
+</addon>
\ No newline at end of file
diff --git a/weather.worldweatheronline/changelog.txt 
b/weather.worldweatheronline/changelog.txt
index 43f9c63..b38c072 100644
--- a/weather.worldweatheronline/changelog.txt
+++ b/weather.worldweatheronline/changelog.txt
@@ -1,2 +1,7 @@
+1.0.2
+- updated description
+- fix: day string conversion will fail on non EN OS localization
+- cosmetic fixes
+
 1.0.1
 - initial release
\ No newline at end of file
diff --git a/weather.worldweatheronline/default.py 
b/weather.worldweatheronline/default.py
index 17f2365..e4d5d54 100644
--- a/weather.worldweatheronline/default.py
+++ b/weather.worldweatheronline/default.py
@@ -86,7 +86,7 @@ def refresh_locations():
   else:
     set_property('Location3'   , "")
 
-  set_property('Locations',str(locations))      # set total number of 
location, XBMC needs this
+  set_property('Locations',str(locations))      # set total number of 
locations, XBMC needs this
 
 def fetch(url):
   log("fetch data from 'worldweatheronline.com'")
@@ -126,7 +126,7 @@ def forecast(city):
   i = 0  
   for day in weather:
     date = strptime(get_elements(day,"date"), '%Y-%m-%d')
-    set_property("Day%i.Title"       % i , DAYS[strftime('%a', date)])         
     # Day of the week
+    set_property("Day%i.Title"       % i , DAYS[int(strftime('%w', date))])    
     # Day of the week
     set_property("Day%i.HighTemp"    % i , get_elements(day,"tempMaxC"))       
     # Max Temp for that day, C only XBMC will do the conversion
     set_property("Day%i.LowTemp"     % i , get_elements(day,"tempMinC"))       
     # Min temperature for that day, C only XBMC will do the conversion
     set_property("Day%i.Outlook"     % i , get_elements(day,"weatherDesc"))    
     # days condition in words
@@ -158,7 +158,7 @@ elif sys.argv[1] == "1" or sys.argv[1] == "2" or 
sys.argv[1] == "3":
     clear_properties()   
 
 refresh_locations()
-set_property("WeatherProvider", "World Weather Online")                        
   # set name of the provider, this will be visible in the Weather page
+set_property("WeatherProvider", "WorldWeatherOnline.com")                      
    # set name of the provider, this will be visible in the Weather page
 
 
 
diff --git a/weather.worldweatheronline/resources/lib/utilities.py 
b/weather.worldweatheronline/resources/lib/utilities.py
index 71e19c9..765762c 100644
--- a/weather.worldweatheronline/resources/lib/utilities.py
+++ b/weather.worldweatheronline/resources/lib/utilities.py
@@ -5,13 +5,13 @@ import xbmc
 
 __scriptname__ = sys.modules[ "__main__" ].__scriptname__
 
-DAYS = { "Mon": xbmc.getLocalizedString( 11 ), 
-         "Tue": xbmc.getLocalizedString( 12 ), 
-         "Wed": xbmc.getLocalizedString( 13 ), 
-         "Thu": xbmc.getLocalizedString( 14 ), 
-         "Fri": xbmc.getLocalizedString( 15 ), 
-         "Sat": xbmc.getLocalizedString( 16 ), 
-         "Sun": xbmc.getLocalizedString( 17 )}
+DAYS = { 1: xbmc.getLocalizedString( 11 ), 
+         2: xbmc.getLocalizedString( 12 ), 
+         3: xbmc.getLocalizedString( 13 ), 
+         4: xbmc.getLocalizedString( 14 ), 
+         5: xbmc.getLocalizedString( 15 ), 
+         6: xbmc.getLocalizedString( 16 ), 
+         0: xbmc.getLocalizedString( 17 )}
          
 WEATHER_CODES = { '395' : '42',   # Moderate or heavy snow in area with thunder
                   '392' : '14',   # Patchy light snow in area with thunder

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

Summary of changes:
 weather.worldweatheronline/addon.xml               |   10 +++++-----
 weather.worldweatheronline/changelog.txt           |    5 +++++
 weather.worldweatheronline/default.py              |    6 +++---
 .../resources/lib/utilities.py                     |   14 +++++++-------
 4 files changed, 20 insertions(+), 15 deletions(-)


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to