The branch, frodo has been updated
       via  64bdd4438f815d1569608e8a653f0994db7d7b7a (commit)
      from  bc5d94d5e2a023ee773f04b5a13e322723eff884 (commit)

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

commit 64bdd4438f815d1569608e8a653f0994db7d7b7a
Author: Martijn Kaijser <[email protected]>
Date:   Sun Oct 13 12:00:40 2013 +0200

    [script.myepisodes] 1.0.6

diff --git a/script.myepisodes/addon.xml b/script.myepisodes/addon.xml
index c807e49..08deb9c 100644
--- a/script.myepisodes/addon.xml
+++ b/script.myepisodes/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="script.myepisodes"
        name="MyEpisodes"
-       version="1.0.5"
+       version="1.0.6"
        provider-name="Maxime Hadjinlian">
   <requires>
     <import addon="xbmc.python" version="2.1.0"/>
diff --git a/script.myepisodes/changelog.txt b/script.myepisodes/changelog.txt
index 3a7d65e..0b398a2 100644
--- a/script.myepisodes/changelog.txt
+++ b/script.myepisodes/changelog.txt
@@ -1,3 +1,7 @@
+1.0.6
++ Fix International issue. The plugin will now work when XBMC is set to
+other lanuages than English.
++ Fix memory issue when exiting plugin.
 1.0.5
 + Fix various bugs
 + Reload the plugin when the settings are modified
diff --git a/script.myepisodes/default.py b/script.myepisodes/default.py
index 130cfd6..04a8956 100644
--- a/script.myepisodes/default.py
+++ b/script.myepisodes/default.py
@@ -18,7 +18,7 @@ __resource__      = 
xbmc.translatePath(__resource_path__).decode('utf-8')
 
 from resources.lib.myepisodes import MyEpisodes
 
-class MyMonitor(xbmc.Monitor):
+class Monitor(xbmc.Monitor):
     def __init__( self, *args, **kwargs ):
         xbmc.Monitor.__init__( self )
         self.action = kwargs['action']
@@ -41,7 +41,7 @@ class Player(xbmc.Player):
         self._min_percent = int(__addon__.getSetting('watched-percent'))
         self._tracker = None
         self._playbackLock = threading.Event()
-        self.Monitor = MyMonitor(action = self._reset)
+        self._monitor = Monitor(action = self._reset)
 
     def _reset(self):
         self._tearDown()
@@ -66,6 +66,7 @@ class Player(xbmc.Player):
     def _tearDown(self):
         if self._playbackLock:
             self._playbackLock.clear()
+        self._monitor = None
         if self._tracker is None:
             return
         if self._tracker.isAlive():
@@ -148,10 +149,11 @@ class Player(xbmc.Player):
 
 def notif(msg, time=5000):
     notif_msg = "%s, %s, %i, %s" % ('MyEpisodes', msg, time, __icon__)
-    xbmc.executebuiltin("XBMC.Notification(%s)" % notif_msg)
+    xbmc.executebuiltin("XBMC.Notification(%s)" % notif_msg.encode('utf-8'))
 
 def log(msg):
-    xbmc.log("### [%s] - %s" % (__scriptname__, msg, ), level=xbmc.LOGDEBUG)
+    xbmc.log("### [%s] - %s" % (__scriptname__, msg.encode('utf-8'), ),
+            level=xbmc.LOGDEBUG)
 
 if ( __name__ == "__main__" ):
     player = Player()

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

Summary of changes:
 script.myepisodes/addon.xml     |    2 +-
 script.myepisodes/changelog.txt |    4 ++++
 script.myepisodes/default.py    |   10 ++++++----
 3 files changed, 11 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to