mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Resume media when possible during casting
This commit is contained in:
parent
a18ca8ab9e
commit
4b40c75c91
1 changed files with 4 additions and 0 deletions
|
@ -180,6 +180,10 @@ class Actions(object):
|
||||||
listitem = xbmcgui.ListItem()
|
listitem = xbmcgui.ListItem()
|
||||||
LOG.info("[ playlist/%s ] %s", item['Id'], item['Name'])
|
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"] = True if resume else False
|
||||||
|
|
||||||
play = playutils.PlayUtils(item, False, self.server_id, self.server, self.api_client)
|
play = playutils.PlayUtils(item, False, self.server_id, self.server, self.api_client)
|
||||||
source = play.select_source(play.get_sources())
|
source = play.select_source(play.get_sources())
|
||||||
play.set_external_subs(source, listitem)
|
play.set_external_subs(source, listitem)
|
||||||
|
|
Loading…
Reference in a new issue