mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Merge pull request #574 from mcarlton00/cast-resume
Resume media when possible during casting
This commit is contained in:
commit
133e408eb1
1 changed files with 4 additions and 0 deletions
|
@ -181,6 +181,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"] = bool(resume)
|
||||||
|
|
||||||
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