Лог в юникоде

sandbox1
inpos 2016-03-14 13:07:48 +03:00
parent 38cf348400
commit 8532df64e4
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import pyrrent2http
import xbmc import xbmc
from error import Error from error import Error
from . import SessionStatus, FileStatus, PeerInfo, Encryption from . import SessionStatus, FileStatus, PeerInfo, Encryption
from util import can_bind, find_free_port, localize_path, uri2path from util import can_bind, find_free_port, localize_path, uri2path, normalize_msg
import threading import threading
LOGGING = True LOGGING = True
@ -19,7 +19,7 @@ class Engine:
if self.logger: if self.logger:
self.logger(message) self.logger(message)
else: else:
xbmc.log("[pyrrent2http] %s" % message) xbmc.log(normalize_msg("[pyrrent2http] %s", (message,)))
def __init__(self, uri=None, platform=None, download_path=".", def __init__(self, uri=None, platform=None, download_path=".",