The branch, eden-pre has been updated
       via  70e8da4b46ec25782cc7263c2a88da7f6e6fa219 (commit)
      from  bd9f5eaf99e9431ea4e10ca18aa2336aead70903 (commit)

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

commit 70e8da4b46ec25782cc7263c2a88da7f6e6fa219
Author: ronie <[email protected]>
Date:   Fri Dec 16 15:04:13 2011 +0100

    [script.globalsearch] -v3.0.7
    
    ignore possible encoding errors

diff --git a/script.randomitems/RandomItems.py 
b/script.randomitems/RandomItems.py
index a00b1ed..5cf20b5 100644
--- a/script.randomitems/RandomItems.py
+++ b/script.randomitems/RandomItems.py
@@ -80,6 +80,7 @@ class Main:
     def _fetch_movie_info( self ):
         # query the database
         json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": 
"VideoLibrary.GetMovies", "params": {"properties": ["playcount", "year", 
"plot", "runtime", "fanart", "thumbnail", "file", "trailer", "rating"] }, "id": 
1}')
+        json_query = unicode(json_query, 'utf-8', errors='ignore')
         # separate the records
         json_response = simplejson.loads(json_query)
         if (json_response['result'] != None) and 
(json_response['result'].has_key('movies')):
@@ -128,6 +129,7 @@ class Main:
         # query the database
         tvshowid = 2
         json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": 
"VideoLibrary.GetEpisodes", "params": { "properties": ["playcount", "season", 
"episode", "showtitle", "plot", "fanart", "thumbnail", "file", "rating"] }, 
"id": 1}')
+        json_query = unicode(json_query, 'utf-8', errors='ignore')
         # separate the records
         json_response = simplejson.loads(json_query)
         if (json_response['result'] != None) and 
(json_response['result'].has_key('episodes')):
@@ -177,6 +179,7 @@ class Main:
     def _fetch_musicvideo_info( self ):
         # query the database
         json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": 
"VideoLibrary.GetMusicVideos", "params": {"properties": ["artist", "playcount", 
"year", "plot", "runtime", "fanart", "thumbnail", "file"] }, "id": 1}')
+        json_query = unicode(json_query, 'utf-8', errors='ignore')
         # separate the records
         json_response = simplejson.loads(json_query)
         if (json_response['result'] != None) and 
(json_response['result'].has_key('musicvideos')):
@@ -222,6 +225,7 @@ class Main:
     def _fetch_album_info( self ):
         # query the database
         json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": 
"AudioLibrary.GetAlbums", "params": {"properties": ["artist", "year", 
"thumbnail", "fanart", "rating"] }, "id": 1}')
+        json_query = unicode(json_query, 'utf-8', errors='ignore')
         # separate the records
         json_response = simplejson.loads(json_query)
         if (json_response['result'] != None) and 
(json_response['result'].has_key('albums')):
@@ -262,6 +266,7 @@ class Main:
     def _fetch_song_info( self ):
         # query the database
         json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": 
"AudioLibrary.GetSongs", "params": {"properties": ["playcount", "artist", 
"album", "year", "file", "thumbnail", "fanart", "rating"] }, "id": 1}')
+        json_query = unicode(json_query, 'utf-8', errors='ignore')
         # separate the records
         json_response = simplejson.loads(json_query)
         if (json_response['result'] != None) and 
(json_response['result'].has_key('songs')):
@@ -361,6 +366,7 @@ class Main:
         playlist.clear()
         # query the database
         json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": 
"AudioLibrary.GetSongs", "params": {"properties": ["file", "fanart"], 
"albumid":%s }, "id": 1}' % ID)
+        json_query = unicode(json_query, 'utf-8', errors='ignore')
         # separate the records
         json_response = simplejson.loads(json_query)
         # enumerate thru our records
diff --git a/script.randomitems/addon.xml b/script.randomitems/addon.xml
index 1f047fa..dcbb2f7 100644
--- a/script.randomitems/addon.xml
+++ b/script.randomitems/addon.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

-<addon id="script.randomitems" name="Random Items script" version="3.0.6" 
provider-name="Hitcher, ronie">

+<addon id="script.randomitems" name="Random Items script" version="3.0.7" 
provider-name="Hitcher, ronie">

        <requires>

                <import addon="xbmc.python" version="2.0"/>

                <import addon="script.module.elementtree" version="1.2.7"/>

diff --git a/script.randomitems/changelog.txt b/script.randomitems/changelog.txt
index 299a4be..26684e1 100644
--- a/script.randomitems/changelog.txt
+++ b/script.randomitems/changelog.txt
@@ -1,3 +1,6 @@
+v3.0.7
+- ignore possible encoding errors
+
 v3.0.6
 - use simplejson instead of regex
 

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

Summary of changes:
 script.randomitems/RandomItems.py |    6 ++++++
 script.randomitems/addon.xml      |    2 +-
 script.randomitems/changelog.txt  |    3 +++
 3 files changed, 10 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to