Fix possible UnicodeEncodeError

This commit is contained in:
croneter 2019-04-05 17:11:43 +02:00
parent 11f636c4b9
commit b1aceb1e90

View file

@ -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):