From 885e8dd58116858277d5eceb90c9ce01ecef8adc Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 13 Apr 2019 15:08:05 +0200 Subject: [PATCH] Fix PKC wanting to initiate playback when it should not --- resources/lib/playstrm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/lib/playstrm.py b/resources/lib/playstrm.py index 1c34d3b8..97938b8d 100644 --- a/resources/lib/playstrm.py +++ b/resources/lib/playstrm.py @@ -202,17 +202,19 @@ class PlayStrm(object): PL.get_playlist_details_from_xml(self.playqueue, xml) # See that we add trailers, if they exist in the xml return self._add_intros(xml) + # Add the main item if seektime: listitem = widgets.get_listitem(self.xml[0], resume=True) else: listitem = widgets.get_listitem(self.xml[0], resume=False) listitem.setSubtitles(self.api.cache_external_subs()) + self.playqueue_item = PL.playlist_item_from_xml(self.xml[0]) play = PlayUtils(self.api, self.playqueue_item) url = play.getPlayUrl().encode('utf-8') listitem.setPath(url) self.playlist_add(url, listitem) - if self.xml.get('PartCount'): - self._add_additional_parts() + # Add additional file parts, if any exist + self._add_additional_parts() def _resume(self): '''