From b1aceb1e9017d66538f01033acc8675019ef6180 Mon Sep 17 00:00:00 2001 From: croneter Date: Fri, 5 Apr 2019 17:11:43 +0200 Subject: [PATCH] Fix possible UnicodeEncodeError --- resources/lib/plex_companion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/plex_companion.py b/resources/lib/plex_companion.py index 24ec2198..267e42e0 100644 --- a/resources/lib/plex_companion.py +++ b/resources/lib/plex_companion.py @@ -132,7 +132,8 @@ class PlexCompanion(backgroundthread.KillableThread): 'key': '{server}%s' % data.get('key'), 'offset': data.get('offset') } - executebuiltin('RunPlugin(plugin://%s)' % utils.extend_url(v.ADDON_ID, params)) + handle = 'RunPlugin(plugin://%s)' % utils.extend_url(v.ADDON_ID, params) + executebuiltin(handle.encode('utf-8')) @staticmethod def _process_playlist(data):