Attach missing filename to plugin call

This commit is contained in:
croneter 2018-05-22 20:31:32 +02:00
parent d1390c25c7
commit 8fbca537f4

View file

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