mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-19 15:55:08 +00:00
Fix context transcode
This commit is contained in:
parent
f6ffd31e2d
commit
ae51eabb41
3 changed files with 7 additions and 2 deletions
|
@ -172,5 +172,5 @@ class Context(object):
|
|||
|
||||
def transcode(self):
|
||||
filename = xbmc.getInfoLabel("ListItem.Filenameandpath")
|
||||
filename += "&transcode=True"
|
||||
filename += "&transcode=true"
|
||||
xbmc.executebuiltin("PlayMedia(%s)" % filename)
|
||||
|
|
|
@ -69,7 +69,7 @@ class Events(object):
|
|||
elif mode =='play':
|
||||
|
||||
item = TheVoid('GetItem', {'Id': params['id'], 'ServerId': server}).get()
|
||||
Actions(server).play(item, params.get('dbid'), True if params.get('transcode') == 'True' else False, playlist=params.get('playlist') == 'true')
|
||||
Actions(server).play(item, params.get('dbid'), params.get('transcode') == 'true', playlist=params.get('playlist') == 'true')
|
||||
|
||||
elif mode == 'playlist':
|
||||
event('PlayPlaylist', {'Id': params['id'], 'ServerId': server})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue