The branch, eden has been updated
via 89255059ae0633cdef28ccfa4ff777e7707c5e9f (commit)
from c6547f54a486386b7752233b5950d71e250db4a6 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=89255059ae0633cdef28ccfa4ff777e7707c5e9f
commit 89255059ae0633cdef28ccfa4ff777e7707c5e9f
Author: ronie <[email protected]>
Date: Wed Sep 5 00:58:30 2012 +0200
[script.randomitems] -v3.1.6
fixed potential unicode encode error
diff --git a/script.randomitems/RandomItems.py
b/script.randomitems/RandomItems.py
index 5ad6bce..b0b998d 100644
--- a/script.randomitems/RandomItems.py
+++ b/script.randomitems/RandomItems.py
@@ -233,7 +233,6 @@ class Main:
json_query = unicode(json_query, 'utf-8', errors='ignore')
# separate the records
json_response = simplejson.loads(json_query)
-
if json_response.has_key('result') and json_response['result'] != None
and json_response['result'].has_key('albums'):
json_response = json_response['result']['albums']
# get total value
@@ -275,7 +274,6 @@ class Main:
json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method":
"AudioLibrary.GetArtists", "params": {"properties": ["genre", "description",
"fanart", "thumbnail"], "sort": { "method": "label" } }, "id": 1}')
json_query = unicode(json_query, 'utf-8', errors='ignore')
json_response = simplejson.loads(json_query)
-
if json_response.has_key('result') and json_response['result'] != None
and json_response['result'].has_key('artists'):
json_response = json_response['result']['artists']
# get total value
@@ -293,7 +291,7 @@ class Main:
json_response.remove( item )
# find values
description = item['description']
- genre = str(item['genre'])
+ genre = item['genre']
artist = item['label']
path = 'musicdb://2/' + str(item['artistid']) + '/'
fanart = item['fanart']
diff --git a/script.randomitems/addon.xml b/script.randomitems/addon.xml
index b5087c2..e377038 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.1.5"
provider-name="Hitcher, ronie, phil65, Martijn">
+<addon id="script.randomitems" name="Random Items script" version="3.1.6"
provider-name="Hitcher, ronie, phil65, Martijn">
<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 d864fa1..364c562 100644
--- a/script.randomitems/changelog.txt
+++ b/script.randomitems/changelog.txt
@@ -1,3 +1,6 @@
+v3.1.6
+- fixed potential unicode encode error
+
v3.1.5
- fix error on empty JSON-RPC result
-----------------------------------------------------------------------
Summary of changes:
script.randomitems/RandomItems.py | 4 +---
script.randomitems/addon.xml | 2 +-
script.randomitems/changelog.txt | 3 +++
3 files changed, 5 insertions(+), 4 deletions(-)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons