Merge pull request #818 from croneter/fix-playback-startup
Fix UnicodeEncodeError on playback startup for direct paths
This commit is contained in:
commit
fb879f39fb
2 changed files with 4 additions and 2 deletions
|
@ -148,7 +148,8 @@ class ContextMenu(object):
|
||||||
playqueue.clear()
|
playqueue.clear()
|
||||||
app.PLAYSTATE.context_menu_play = True
|
app.PLAYSTATE.context_menu_play = True
|
||||||
handle = self.api.path(force_first_media=False, force_addon=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):
|
def _extras(self):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -132,7 +132,8 @@ class PlexCompanion(backgroundthread.KillableThread):
|
||||||
'key': '{server}%s' % data.get('key'),
|
'key': '{server}%s' % data.get('key'),
|
||||||
'offset': data.get('offset')
|
'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
|
@staticmethod
|
||||||
def _process_playlist(data):
|
def _process_playlist(data):
|
||||||
|
|
Loading…
Reference in a new issue