mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-17 21:56:13 +00:00
Fix resume when using play-to
This commit is contained in:
parent
dc12f05ba8
commit
c4608b38e1
3 changed files with 19 additions and 13 deletions
|
@ -43,17 +43,19 @@ class Playlist():
|
|||
embycursor = embyconn.cursor()
|
||||
emby_db = embydb.Embydb_Functions(embycursor)
|
||||
|
||||
self.logMsg("---*** PLAY ALL ***---", 1)
|
||||
self.logMsg("Items: %s and start at: %s" % (itemids, startat))
|
||||
|
||||
player = xbmc.Player()
|
||||
playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
|
||||
playlist.clear()
|
||||
started = False
|
||||
|
||||
self.logMsg("---*** PLAY ALL ***---", 1)
|
||||
self.logMsg("Items: %s and start at: %s" % (itemids, startat))
|
||||
|
||||
started = False
|
||||
utils.window('emby_customplaylist', value="true")
|
||||
|
||||
position = 0
|
||||
if startat != 0:
|
||||
# Seek to the starting position
|
||||
utils.window('emby_customplaylist.seektime', str(startat))
|
||||
|
||||
for itemid in itemids:
|
||||
embydb_item = emby_db.getItem_byId(itemid)
|
||||
|
@ -75,12 +77,6 @@ class Playlist():
|
|||
started = True
|
||||
player.play(playlist)
|
||||
|
||||
if startat:
|
||||
# Seek to the starting position
|
||||
seektime = startat / 10000000.0
|
||||
player.seekTime(seektime)
|
||||
self.logMsg("Seeking to: %s" % seektime, 1)
|
||||
|
||||
self.verifyPlaylist()
|
||||
embycursor.close()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue