From 900b1cc76ac79b2adec8767525897275b37e107d Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 20 Jan 2018 18:08:28 -0600 Subject: [PATCH] Fix resume for widgets --- resources/lib/playbackutils.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/resources/lib/playbackutils.py b/resources/lib/playbackutils.py index 29915ff5..17aa8ced 100644 --- a/resources/lib/playbackutils.py +++ b/resources/lib/playbackutils.py @@ -74,7 +74,7 @@ class PlaybackUtils(object): log.info("Clear the playlist.") self.playlist.clear() - self.set_playlist(play_url, item_id, listitem, seektime, dbid, force_transcode) + self.set_playlist(play_url, item_id, listitem, seektime, dbid) ##### SETUP PLAYBACK @@ -99,6 +99,7 @@ class PlaybackUtils(object): except IndexError: log.info("Playback activated via the context menu or widgets.") force_play = True + listitem.setProperty('StartOffset', str(seektime)) for stack in self.stack: self.playlist.add(url=stack[0], listitem=stack[1], index=index) @@ -107,7 +108,7 @@ class PlaybackUtils(object): if force_play: xbmc.Player().play(self.playlist) - def set_playlist(self, play_url, item_id, listitem, seektime=None, db_id=None, force_transcode=False): + def set_playlist(self, play_url, item_id, listitem, seektime=None, db_id=None): ##### CHECK FOR INTROS @@ -120,9 +121,6 @@ class PlaybackUtils(object): self.set_listitem(listitem, db_id) self.stack.append([play_url, listitem]) - if force_transcode and seektime: - listitem.setProperty('StartOffset', str(seektime)) - ##### ADD ADDITIONAL PARTS if self.item.get('PartCount'):