The branch, eden-pre has been updated
via 2192c9cdd5d6246527d014aff2b954370e615f36 (commit)
from d22425c43be47d927d1a1205d2d90c27705e2cfb (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=2192c9cdd5d6246527d014aff2b954370e615f36
commit 2192c9cdd5d6246527d014aff2b954370e615f36
Author: ronie <[email protected]>
Date: Sun Nov 20 22:29:00 2011 +0100
[script.tv.show.next.aired] -v4.1.6
fix unicode issue
diff --git a/script.tv.show.next.aired/addon.xml
b/script.tv.show.next.aired/addon.xml
index 6697ed2..14c2e20 100644
--- a/script.tv.show.next.aired/addon.xml
+++ b/script.tv.show.next.aired/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.tv.show.next.aired"
name="TV Show - Next Aired"
- version="4.1.5"
+ version="4.1.6"
provider-name="Ppic, Frost, ronie, `Black">
<requires>
<import addon="xbmc.python" version="2.0"/>
diff --git a/script.tv.show.next.aired/changelog.txt
b/script.tv.show.next.aired/changelog.txt
index c9b1af1..7928b0e 100644
--- a/script.tv.show.next.aired/changelog.txt
+++ b/script.tv.show.next.aired/changelog.txt
@@ -1,3 +1,7 @@
+v4.1.6
+- fix unicode issue
+- removed unnecessary closing of the dialog after click on a tv show
+
v4.1.5
- make items in the gui clickable
diff --git a/script.tv.show.next.aired/default.py
b/script.tv.show.next.aired/default.py
index dfa46ae..4f1302e 100644
--- a/script.tv.show.next.aired/default.py
+++ b/script.tv.show.next.aired/default.py
@@ -1,5 +1,5 @@
from time import strptime, time, mktime
-import os, sys, re, socket, urllib, locale, simplejson
+import os, sys, re, socket, urllib, locale, unicodedata, simplejson
from traceback import print_exc
from datetime import datetime, date, timedelta, tzinfo
from dateutil import tz
@@ -55,6 +55,16 @@ def get_html_source(url , save=False):
log( "### ERROR opening page %s ---%s---" % ( url , succeed) )
return ""
+def _unicode( text, encoding='utf-8' ):
+ try: text = unicode( text, encoding )
+ except: pass
+ return text
+
+def normalize_string( text ):
+ try: text = unicodedata.normalize( 'NFKD', _unicode( text ) ).encode(
'ascii', 'ignore' )
+ except: pass
+ return text
+
class NextAired:
def __init__(self):
footprints()
@@ -175,6 +185,7 @@ class NextAired:
if json_response['result'].has_key('tvshows'):
for item in json_response['result']['tvshows']:
tvshowname = item['label']
+ tvshowname = normalize_string( tvshowname )
path = item['file']
thumbnail = item['thumbnail']
fanart = item['fanart']
diff --git a/script.tv.show.next.aired/resources/lib/next_aired_dialog.py
b/script.tv.show.next.aired/resources/lib/next_aired_dialog.py
index fff9143..6e3df3b 100644
--- a/script.tv.show.next.aired/resources/lib/next_aired_dialog.py
+++ b/script.tv.show.next.aired/resources/lib/next_aired_dialog.py
@@ -90,7 +90,6 @@ class Gui( xbmcgui.WindowXML ):
elif controlID in ( 200, 201, 202, 203, 204, 205, 206, ):
listitem = self.getControl( controlID ).getSelectedItem()
library = listitem.getProperty('Library')
- self.close()
xbmc.executebuiltin('ActivateWindow(Videos,' + library +
',return)')
def onFocus(self, controlID):
-----------------------------------------------------------------------
Summary of changes:
script.tv.show.next.aired/addon.xml | 2 +-
script.tv.show.next.aired/changelog.txt | 4 ++++
script.tv.show.next.aired/default.py | 13 ++++++++++++-
.../resources/lib/next_aired_dialog.py | 1 -
4 files changed, 17 insertions(+), 3 deletions(-)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons