From ae0e121b13e2643d6df951a9a38016c74084fd5a Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 5 Oct 2019 10:46:33 +0200 Subject: [PATCH] Optimize code --- resources/lib/kodimonitor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index a7b615ab..759ef7e3 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -24,8 +24,7 @@ from . import backgroundthread, app, variables as v LOG = getLogger('PLEX.kodimonitor') # "Start from beginning", "Play from beginning" -STRINGS = (utils.try_encode(utils.lang(12021)), - utils.try_encode(utils.lang(12023))) +STRINGS = (utils.lang(12021).encode('utf-8'), utils.lang(12023).encode('utf-8')) class KodiMonitor(xbmc.Monitor):