The branch, frodo has been updated
       via  9756f61bb9b9e4b0ebf292e7697a6c52591c013f (commit)
       via  a52707015026dcb46eb7bfac380ac234332a30ec (commit)
      from  7472c9fc4966936ba62369ed21e64d3335f71a5e (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=9756f61bb9b9e4b0ebf292e7697a6c52591c013f

commit 9756f61bb9b9e4b0ebf292e7697a6c52591c013f
Author: sphere <[email protected]>
Date:   Tue May 27 11:41:05 2014 +0200

    [plugin.video.mlslive] updated to version 1.0.10

diff --git a/plugin.video.mlslive/addon.xml b/plugin.video.mlslive/addon.xml
index ad4515c..50edcaf 100644
--- a/plugin.video.mlslive/addon.xml
+++ b/plugin.video.mlslive/addon.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="plugin.video.mlslive" name="MLS Live" version="1.0.9" 
provider-name="Micah Galizia">
+<addon id="plugin.video.mlslive" name="MLS Live" version="1.0.10" 
provider-name="Micah Galizia">
   <requires>
     <import addon="xbmc.python"   version="2.1.0"/>
   </requires>
diff --git a/plugin.video.mlslive/changelog.txt 
b/plugin.video.mlslive/changelog.txt
index d714995..ed1e576 100644
--- a/plugin.video.mlslive/changelog.txt
+++ b/plugin.video.mlslive/changelog.txt
@@ -1,3 +1,8 @@
+[B]Version 1.0.10[/B]
+
+- fix game start times
+- fix game encoding glitch that prevents certain nations from displaying 
properly in the list of games
+
 [B]Version 1.0.9[/B]
 
 - don't preload live or upcoming match URIs (should be faster)
diff --git a/plugin.video.mlslive/mlslive.py b/plugin.video.mlslive/mlslive.py
index ecfc33f..9391bd6 100644
--- a/plugin.video.mlslive/mlslive.py
+++ b/plugin.video.mlslive/mlslive.py
@@ -230,16 +230,18 @@ class MLSLive:
         @return a string containing the local game date and time.
         """
 
-        # We know the GMT offset is 0, so just get rid of the trailing offset
-        time_parts = game_date_time.split('+')
-        game_t = time.strptime(time_parts[0], "%Y%m%dT%H%M%S")
+        game_t = time.strptime(game_date_time[:15], "%Y%m%dT%H%M%S")
         game_dt = datetime.datetime.fromtimestamp(time.mktime(game_t))
 
         # get the different between now and utc
         td = datetime.datetime.utcnow() - datetime.datetime.now()
 
+        # get the offset the game time is listed in
+        game_offset = datetime.timedelta(hours = int(game_date_time[16:18]),
+                                         minutes = int(game_date_time[18:20]))
+
         # subtract that difference from the game time (to put it into local 
gime)
-        game_dt = game_dt - td
+        game_dt = game_dt - td - game_offset
 
         # return a nice string
         return game_dt.strftime("%m/%d %H:%M")
@@ -295,7 +297,7 @@ class MLSLive:
         else:
             game_str += ' (' + self.getGameDateTimeStr(game['gameDateTime']) + 
')'
 
-        return game_str
+        return game_str.encode('utf-8').strip()
 
 
     def getGameXML(self, game_id):
diff --git a/plugin.video.mlslive/test.py b/plugin.video.mlslive/test.py
index 2ca3e87..3fc4ce0 100755
--- a/plugin.video.mlslive/test.py
+++ b/plugin.video.mlslive/test.py
@@ -105,5 +105,5 @@ teams = my_mls.getTeams()
 
 for game in games:
 
-    print game['gameID'] + ": " + my_mls.getGameString(game, "at") 
+    print game['gameID'] + ": " + my_mls.getGameString(game, 
"at").decode('utf-8')
 

http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=a52707015026dcb46eb7bfac380ac234332a30ec


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

Summary of changes:
 plugin.video.mlslive/addon.xml                     |    2 +-
 plugin.video.mlslive/changelog.txt                 |    5 +
 plugin.video.mlslive/mlslive.py                    |   12 ++-
 plugin.video.mlslive/test.py                       |    2 +-
 .../LICENSE.txt                                    |    0
 plugin.video.sprout/README.txt                     |    8 ++
 .../addon.xml                                      |   17 ++--
 plugin.video.sprout/changelog.txt                  |    3 +
 .../default.py                                     |   81 ++++++++++----------
 plugin.video.sprout/fanart.jpg                     |  Bin 0 -> 205691 bytes
 plugin.video.sprout/icon.png                       |  Bin 0 -> 123387 bytes
 .../resources/language/English/strings.xml         |    0
 .../resources/settings.xml                         |    0
 13 files changed, 74 insertions(+), 56 deletions(-)
 copy {plugin.audio.abradio.cz => plugin.video.sprout}/LICENSE.txt (100%)
 create mode 100644 plugin.video.sprout/README.txt
 copy {plugin.video.i24News => plugin.video.sprout}/addon.xml (51%)
 create mode 100644 plugin.video.sprout/changelog.txt
 copy {plugin.video.metv => plugin.video.sprout}/default.py (66%)
 create mode 100644 plugin.video.sprout/fanart.jpg
 create mode 100644 plugin.video.sprout/icon.png
 copy {plugin.video.foodnetwork => 
plugin.video.sprout}/resources/language/English/strings.xml (100%)
 copy {plugin.video.foodnetwork => plugin.video.sprout}/resources/settings.xml 
(100%)


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to