log fix
parent
57c518129e
commit
68a82c9cdc
|
@ -38,8 +38,12 @@ class DownloaderClass():
|
|||
return True
|
||||
|
||||
def log(msg):
|
||||
try:
|
||||
xbmc.log("### [%s]: %s" % (__scriptname__,msg,), level=xbmc.LOGNOTICE )
|
||||
#print "### [%s]: %s" % (__scriptname__,msg,)
|
||||
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):
|
||||
dirname=xbmc.translatePath('special://temp')
|
||||
|
|
Loading…
Reference in New Issue