The branch, frodo has been updated
       via  c4e59428e0dbd7409a7fd499841d0380f4858c21 (commit)
      from  5439ba41789fd0814e61af3f3f01d73e4d9e79e8 (commit)

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

commit c4e59428e0dbd7409a7fd499841d0380f4858c21
Author: Martijn Kaijser <[email protected]>
Date:   Sat May 24 15:59:45 2014 +0200

    [script.lazytv] 0.9.81

diff --git a/script.lazytv/addon.xml b/script.lazytv/addon.xml
index 61c132d..1f18c4d 100644
--- a/script.lazytv/addon.xml
+++ b/script.lazytv/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
 <addon id="script.lazytv"
        name="LazyTV"
-       version="0.9.8"
+       version="0.9.81"
        provider-name="KodeKarnage">
     <requires>
         <import addon="xbmc.python" version="2.1.0"/>
diff --git a/script.lazytv/default.py b/script.lazytv/default.py
index 20779a5..b9d6a25 100644
--- a/script.lazytv/default.py
+++ b/script.lazytv/default.py
@@ -45,7 +45,6 @@ __addon__        = xbmcaddon.Addon()
 __addonid__      = __addon__.getAddonInfo('id')
 __addonversion__ = tuple([int(x) for x in 
__addon__.getAddonInfo('version').split('.')])
 __setting__      = __addon__.getSetting
-lang             = __addon__.getLocalizedString
 dialog           = xbmcgui.Dialog()
 scriptPath       = __addon__.getAddonInfo('path')
 scriptName       = __addon__.getAddonInfo('Name')
@@ -98,7 +97,10 @@ try:
 except:
        pass
 
-
+def lang(id):
+       san = __addon__.getLocalizedString(id).encode( 'utf-8', 'ignore' )
+       return san 
+       
 def log(message, label = '', reset = False):
        if keep_logs:
                global start_time
diff --git a/script.lazytv/resources/addon_clone.xml 
b/script.lazytv/resources/addon_clone.xml
index f64e383..3e1a672 100644
--- a/script.lazytv/resources/addon_clone.xml
+++ b/script.lazytv/resources/addon_clone.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
 <addon id="script.lazytv.SANNAME"
        name="CLONENAME"
-       version="0.9.8"
+       version="0.9.81"
        provider-name="KodeKarnage">
     <requires>
         <import addon="xbmc.python" version="2.1.0"/>
diff --git a/script.lazytv/resources/clone.py b/script.lazytv/resources/clone.py
index 1787792..45632e3 100644
--- a/script.lazytv/resources/clone.py
+++ b/script.lazytv/resources/clone.py
@@ -37,7 +37,6 @@ import fileinput
 __addon__        = xbmcaddon.Addon('script.lazytv')
 __addonid__      = __addon__.getAddonInfo('id')
 __setting__      = __addon__.getSetting
-lang             = __addon__.getLocalizedString
 dialog           = xbmcgui.Dialog()
 scriptPath       = __addon__.getAddonInfo('path')
 addon_path       = xbmc.translatePath('special://home/addons')
@@ -46,6 +45,9 @@ keep_logs        = True if __setting__('logging') == 'true' 
else False
 start_time       = time.time()
 base_time        = time.time()
 
+def lang(id):
+       san = __addon__.getLocalizedString(id).encode( 'utf-8', 'ignore' )
+       return san 
 
 def sanitize_strings(dirtystring):
 
diff --git a/script.lazytv/resources/episode_exporter.py 
b/script.lazytv/resources/episode_exporter.py
index e047e59..ba7d145 100644
--- a/script.lazytv/resources/episode_exporter.py
+++ b/script.lazytv/resources/episode_exporter.py
@@ -36,8 +36,6 @@ import json
 
 __addon__        = xbmcaddon.Addon('script.lazytv')
 __addonid__      = __addon__.getAddonInfo('id')
-__setting__      = __addon__.getSetting
-lang             = __addon__.getLocalizedString
 dialog           = xbmcgui.Dialog()
 scriptPath       = __addon__.getAddonInfo('path')
 addon_path       = xbmc.translatePath('special://home/addons')
@@ -56,6 +54,9 @@ try:
 except:
        spec_shows = []
 
+def lang(id):
+       san = __addon__.getLocalizedString(id).encode( 'utf-8', 'ignore' )
+       return san 
 
 def log(message, label = '', reset = False):
        if keep_logs:
diff --git a/script.lazytv/resources/playlists.py 
b/script.lazytv/resources/playlists.py
index 837b054..791a9af 100644
--- a/script.lazytv/resources/playlists.py
+++ b/script.lazytv/resources/playlists.py
@@ -5,7 +5,10 @@ import xbmcgui
 
 _addon_              = xbmcaddon.Addon('script.lazytv')
 __addonid__          = _addon_.getAddonInfo('id')
-lang             = _addon_.getLocalizedString
+
+def lang(id):
+    san = __addon__.getLocalizedString(id).encode( 'utf-8', 'ignore' )
+    return san 
 
 plf            = {"jsonrpc": "2.0","id": 1, "method": "Files.GetDirectory",    
     "params": {"directory": "special://profile/playlists/video/", "media": 
"video"}}
 
diff --git a/script.lazytv/resources/selector.py 
b/script.lazytv/resources/selector.py
index 92f9df0..9d0135d 100644
--- a/script.lazytv/resources/selector.py
+++ b/script.lazytv/resources/selector.py
@@ -31,7 +31,6 @@ import sys
 _addon_ = xbmcaddon.Addon('script.lazytv')
 __addonid__          = _addon_.getAddonInfo('id')
 _setting_            = _addon_.getSetting
-lang                 = _addon_.getLocalizedString
 scriptPath           = _addon_.getAddonInfo('path')
 
 list_type            = len(sys.argv[1])
@@ -48,6 +47,10 @@ base_time              = time.time()
 
 show_request         = {"jsonrpc": "2.0","method": 
"VideoLibrary.GetTVShows","params": {"properties": ["thumbnail"]},"id": "1"}
 
+def lang(id):
+    san = __addon__.getLocalizedString(id).encode( 'utf-8', 'ignore' )
+    return san 
+
 def json_query(query, ret):
     try:
         xbmc_request = json.dumps(query)
diff --git a/script.lazytv/resources/update_clone.py 
b/script.lazytv/resources/update_clone.py
index 1436a65..45976ec 100644
--- a/script.lazytv/resources/update_clone.py
+++ b/script.lazytv/resources/update_clone.py
@@ -38,7 +38,6 @@ clone_name = sys.argv[4]
 __addon__        = xbmcaddon.Addon('script.lazytv')
 __addonid__      = __addon__.getAddonInfo('id')
 __setting__      = __addon__.getSetting
-lang             = __addon__.getLocalizedString
 dialog           = xbmcgui.Dialog()
 
 start_time       = time.time()
@@ -46,6 +45,10 @@ base_time        = time.time()
 
 keep_logs        = True if __setting__('logging') == 'true' else False
 
+def lang(id):
+       san = __addon__.getLocalizedString(id).encode( 'utf-8', 'ignore' )
+       return san 
+
 def log(message, label = '', reset = False):
        if keep_logs:
                global start_time
diff --git a/script.lazytv/service.py b/script.lazytv/service.py
index 314d897..551b118 100644
--- a/script.lazytv/service.py
+++ b/script.lazytv/service.py
@@ -51,7 +51,6 @@ __addonversion__       = tuple([int(x) for x in 
__addon__.getAddonInfo('version'
 __scriptPath__         = __addon__.getAddonInfo('path')
 __profile__            = xbmc.translatePath(__addon__.getAddonInfo('profile'))
 __setting__            = __addon__.getSetting
-lang                   = __addon__.getLocalizedString
 videoplaylistlocation  = 
xbmc.translatePath('special://profile/playlists/video/')
 start_time             = time.time()
 base_time              = time.time()
@@ -74,6 +73,10 @@ moviemid               = True if __setting__('moviemid')     
                == 'true' else False
 first_run              = True if __setting__('first_run')                      
== 'true' else False
 maintainsmartplaylist  = True if __setting__('maintainsmartplaylist')          
        == 'true' else False
 
+def lang(id):
+       san = __addon__.getLocalizedString(id).encode( 'utf-8', 'ignore' )
+       return san 
+
 def log(message, label = '', reset = False):
        if keep_logs:
                global start_time

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

Summary of changes:
 script.lazytv/addon.xml                     |    2 +-
 script.lazytv/default.py                    |    6 ++++--
 script.lazytv/resources/addon_clone.xml     |    2 +-
 script.lazytv/resources/clone.py            |    4 +++-
 script.lazytv/resources/episode_exporter.py |    5 +++--
 script.lazytv/resources/playlists.py        |    5 ++++-
 script.lazytv/resources/selector.py         |    5 ++++-
 script.lazytv/resources/update_clone.py     |    5 ++++-
 script.lazytv/service.py                    |    5 ++++-
 9 files changed, 28 insertions(+), 11 deletions(-)


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to