Merge pull request #686 from croneter/fix-resume

Fix playback not starting at the beginning
This commit is contained in:
croneter 2019-02-03 20:24:04 +01:00 committed by GitHub
commit a7222af648
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -424,6 +424,8 @@ def _conclude_playback(playqueue, pos):
else: else:
listitem.setProperty('StartOffset', str(item.offset)) listitem.setProperty('StartOffset', str(item.offset))
listitem.setProperty('resumetime', str(item.offset)) listitem.setProperty('resumetime', str(item.offset))
elif v.KODIVERSION >= 18:
listitem.setProperty('StartPercent', '0')
# Reset the resumable flag # Reset the resumable flag
transfer.send(listitem) transfer.send(listitem)
LOG.info('Done concluding playback') LOG.info('Done concluding playback')