Merge pull request #818 from croneter/fix-playback-startup

Fix UnicodeEncodeError on playback startup for direct paths
This commit is contained in:
croneter 2019-04-05 17:12:58 +02:00 committed by GitHub
commit fb879f39fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -148,7 +148,8 @@ class ContextMenu(object):
playqueue.clear()
app.PLAYSTATE.context_menu_play = True
handle = self.api.path(force_first_media=False, force_addon=True)
xbmc.executebuiltin('RunPlugin(%s)' % handle)
handle = 'RunPlugin(%s)' % handle
xbmc.executebuiltin(handle.encode('utf-8'))
def _extras(self):
"""

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