From 22250b148553b8227c6bbe8d207a4b2eae20bd5b Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 4 Feb 2016 13:33:16 +0100 Subject: [PATCH] Small Fix resume playing --- resources/lib/entrypoint.py | 2 +- resources/lib/playbackutils.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index 26bfb71f..8dad0e06 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -89,7 +89,7 @@ def PassPlaylist(xml, resume=None): # Get resume point resume1 = PlexFunctions.ConvertPlexToKodiTime(utils.IntFromStr( - xml.attrib.get('playQueueSelectedItemOffset'))) + xml.attrib.get('playQueueSelectedItemOffset', 0))) resume2 = resume resume = max(resume1, resume2) diff --git a/resources/lib/playbackutils.py b/resources/lib/playbackutils.py index 3260950e..c00a045a 100644 --- a/resources/lib/playbackutils.py +++ b/resources/lib/playbackutils.py @@ -304,7 +304,6 @@ class PlaybackUtils(): # - artist : list (['U2']) listItem.setProperty('IsPlayable', 'true') listItem.setProperty('IsFolder', 'false') - listItem.setProperty('StartOffset', '-1') listItem.setLabel(metadata['title']) listItem.setInfo('video', infoLabels=metadata) """