The branch, eden has been updated
via 4f26bbe3105b993b14c8cd13bf9c487ded9971ed (commit)
from eb5cecbb5f737634983e7e9c738705e3eb083aa8 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=4f26bbe3105b993b14c8cd13bf9c487ded9971ed
commit 4f26bbe3105b993b14c8cd13bf9c487ded9971ed
Author: ronie <[email protected]>
Date: Tue Mar 20 18:06:32 2012 +0100
[script.tvtunes] -v1.0.17
use title instead of label
diff --git a/script.tvtunes/addon.xml b/script.tvtunes/addon.xml
index 7e50eb3..fce4255 100644
--- a/script.tvtunes/addon.xml
+++ b/script.tvtunes/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.tvtunes"
name="TvTunes"
- version="1.0.15"
+ version="1.0.17"
provider-name="Ppic, ronie">
<requires>
<import addon="xbmc.python" version="2.0"/>
diff --git a/script.tvtunes/changelog.txt b/script.tvtunes/changelog.txt
index 5a989a3..a2f9065 100644
--- a/script.tvtunes/changelog.txt
+++ b/script.tvtunes/changelog.txt
@@ -1,3 +1,10 @@
+v1.0.17
+- use title instead of label
+
+v1.0.16
+- fix unicode in path issue
+- use json if python 2.7 is available
+
v1.0.15
- fix browsing smb shares in addon settings
diff --git a/script.tvtunes/default.py b/script.tvtunes/default.py
index bb1b314..2d3361f 100644
--- a/script.tvtunes/default.py
+++ b/script.tvtunes/default.py
@@ -10,7 +10,7 @@ __author__ = __addon__.getAddonInfo('author')
__version__ = __addon__.getAddonInfo('version')
__language__ = __addon__.getLocalizedString
-RESOURCES_PATH = xbmc.translatePath( os.path.join( __cwd__, 'resources' ) )
+RESOURCES_PATH = xbmc.translatePath( os.path.join( __cwd__, 'resources' )
).decode('utf-8')
sys.path.append( RESOURCES_PATH )
def log(msg):
diff --git a/script.tvtunes/resources/tvtunes_scraper.py
b/script.tvtunes/resources/tvtunes_scraper.py
index 01e1304..bcfe685 100644
--- a/script.tvtunes/resources/tvtunes_scraper.py
+++ b/script.tvtunes/resources/tvtunes_scraper.py
@@ -4,12 +4,15 @@ import urllib
import os
from traceback import print_exc
import re
-import simplejson
import unicodedata
import xbmc
import xbmcaddon
import xbmcgui
import xbmcvfs
+if sys.version_info < (2, 7):
+ import simplejson
+else:
+ import json as simplejson
__addon__ = xbmcaddon.Addon(id='script.tvtunes')
__addonid__ = __addon__.getAddonInfo('id')
@@ -204,14 +207,14 @@ class TvTunes:
def listing(self):
# on recup la liste des series en biblio
# json statement for tv shows
- json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method":
"VideoLibrary.GetTVShows", "params": {"properties": ["file"], "sort": {
"method": "label" } }, "id": 1}')
+ json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method":
"VideoLibrary.GetTVShows", "params": {"properties": ["title", "file"], "sort":
{ "method": "title" } }, "id": 1}')
json_query = unicode(json_query, 'utf-8', errors='ignore')
json_response = simplejson.loads(json_query)
log( json_response )
TVlist = []
if json_response['result'].has_key('tvshows'):
for item in json_response['result']['tvshows']:
- tvshow = item['label'].replace(":","")
+ tvshow = item['title'].replace(":","")
tvshow = normalize_string( tvshow )
if self.enable_custom_path == "true":
path = self.custom_path + (tvshow)
-----------------------------------------------------------------------
Summary of changes:
script.tvtunes/addon.xml | 2 +-
script.tvtunes/changelog.txt | 7 +++++++
script.tvtunes/default.py | 2 +-
script.tvtunes/resources/tvtunes_scraper.py | 9 ++++++---
4 files changed, 15 insertions(+), 5 deletions(-)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons