2013-09-06, 05:17
For Android, the issue is with the python interpreter: http://forum.xbmc.org/showthread.php?tid=170883
import urllib2
import json
import jw_config
def loadUrl (url):
response = jw_config.cache( urllib2.urlopen, url) )
html = response.read()
return html
try:
import StorageServer
except:
import storageserverdummy as StorageServer
jw_config.cache( urllib2.urlopen, url) )
import urllib2
import jw_config
def loadNotCachedUrl(url):
response = urllib2.urlopen (url)
html = response.read()
return html
def loadUrl (url):
html = jw_config.cache.cacheFunction(loadNotCachedUrl, url)
return html
cache = StorageServer.StorageServer("plugin://plugin.video.jworg/", 24)
cache.delete("%");
<import addon="script.common.plugin.cache" version="0.9.1"/>
(2013-12-24, 17:02)ghostwhowalks Wrote: What OS are you using? Is your addon publicly available? I'm using a clean install of Openelec 3.2.4 for RPi, the Youtube addon using the common plugin cache takes 20+ seconds to show a listing and the same for reshowing. The Dailymotion addon does not use the common plugin cache and takes 5 seconds to show and reshow a listing.
Quote:The cache greatly cuts down on the time it take to reshow a listing after playback has finished, or just on directory change.http://forum.xbmc.org/showthread.php?tid...#pid955618
File "/home/ZZZZ/.xbmc/addons/script.common.plugin.cache/lib/StorageServer.py", line 416, in _sqlSet
self._log(u"Update : " + data, 3)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)