diff --git a/jellyfin_kodi/objects/actions.py b/jellyfin_kodi/objects/actions.py index dd2c02de..14b09702 100644 --- a/jellyfin_kodi/objects/actions.py +++ b/jellyfin_kodi/objects/actions.py @@ -181,6 +181,10 @@ class Actions(object): listitem = xbmcgui.ListItem() LOG.info("[ playlist/%s ] %s", item['Id'], item['Name']) + # Automatically resume if the item is in progress (casting from server) + resume = item['UserData'].get('PlaybackPositionTicks') + item["resumePlayback"] = bool(resume) + play = playutils.PlayUtils(item, False, self.server_id, self.server, self.api_client) source = play.select_source(play.get_sources()) play.set_external_subs(source, listitem)