Attach missing filename to plugin call
This commit is contained in:
parent
d1390c25c7
commit
8fbca537f4
1 changed files with 3 additions and 2 deletions
|
@ -241,10 +241,11 @@ def _prep_playlist_stack(xml):
|
||||||
api.set_part_number(part)
|
api.set_part_number(part)
|
||||||
if kodi_id is None:
|
if kodi_id is None:
|
||||||
# Need to redirect again to PKC to conclude playback
|
# Need to redirect again to PKC to conclude playback
|
||||||
path = ('plugin://%s/?plex_id=%s&plex_type=%s&mode=play'
|
path = ('plugin://%s/?plex_id=%s&plex_type=%s&mode=play&filename=%s'
|
||||||
% (v.ADDON_TYPE[api.plex_type()],
|
% (v.ADDON_TYPE[api.plex_type()],
|
||||||
api.plex_id(),
|
api.plex_id(),
|
||||||
api.plex_type()))
|
api.plex_type(),
|
||||||
|
api.file_name(force_first_media=True)))
|
||||||
listitem = api.create_listitem()
|
listitem = api.create_listitem()
|
||||||
listitem.setPath(try_encode(path))
|
listitem.setPath(try_encode(path))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue