log fix
parent
57c518129e
commit
68a82c9cdc
|
@ -38,8 +38,12 @@ class DownloaderClass():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def log(msg):
|
def log(msg):
|
||||||
xbmc.log("### [%s]: %s" % (__scriptname__,msg,), level=xbmc.LOGNOTICE )
|
try:
|
||||||
#print "### [%s]: %s" % (__scriptname__,msg,)
|
xbmc.log("### [%s]: %s" % (__scriptname__,msg,), level=xbmc.LOGNOTICE )
|
||||||
|
except UnicodeEncodeError:
|
||||||
|
xbmc.log("### [%s]: %s" % (__scriptname__,msg.encode("utf-8", "ignore"),), level=xbmc.LOGNOTICE )
|
||||||
|
except:
|
||||||
|
xbmc.log("### [%s]: %s" % (__scriptname__,'ERROR LOG',), level=xbmc.LOGNOTICE )
|
||||||
|
|
||||||
def tempdir(platform):
|
def tempdir(platform):
|
||||||
dirname=xbmc.translatePath('special://temp')
|
dirname=xbmc.translatePath('special://temp')
|
||||||
|
|
Loading…
Reference in New Issue