2012-10-16, 21:26
Thanks for your feedback. Found a workaround - This at least shows titles (without umlauts) but sends the correct query to sagex so I get the shows correct back. When i list all episodes of a show, that the umlauts are correct there...
Should be changeable...
Should be changeable...
Code:
def VIEWLISTOFRECORDEDSHOWS(url,name):
#Get the list of Recorded shows
now = time.time()
strNowObject = date.fromtimestamp(now)
now = "%02d.%02d.%s" % (strNowObject.day+1, strNowObject.month, strNowObject.year)
#addDir('[All Shows]',strUrl + '/sagex/api?c=xbmc:GetMediaFilesForShowWithSubsetOfProperties&1=&size=500&encoder=json',11,IMAGE_POSTER,IMAGE_THUMB,'',now,'')
titleObjects = executeSagexAPIJSONCall(url, "Result")
titles = titleObjects.keys()
for title in titles:
mfsForTitle = titleObjects.get(title)
for mfSubset in mfsForTitle:
strTitle = mfSubset.get("ShowTitle")
strT=strTitle <-----------------------------------------------------
strTitle = unicodedata.normalize('NFKD', unicode(strTitle)).encode('ascii','ignore')
.
.
.
.
break
urlToShowEpisodes = strUrl + '/sagex/api?c=xbmc:GetMediaFilesForShowWithSubsetOfProperties&1=' + urllib2.quote(strT.encode("utf8")) + '&size=500&encoder=json' <----------------------------