From 329dac9c32858ab92b0ee62cba20d478c078c1dc Mon Sep 17 00:00:00 2001 From: Sergey Kolosovskiy Date: Tue, 29 Nov 2016 21:41:30 +0200 Subject: [PATCH] Autopause on play fix Time after time when playing large files the setting "pause_onplay" didn't actually pause the playback on start. --- Inposloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Inposloader.py b/Inposloader.py index bd5f2eb..4b5c1dc 100644 --- a/Inposloader.py +++ b/Inposloader.py @@ -541,7 +541,7 @@ class InposPlayer(xbmc.Player): self.iterator = int(file_status.progress * 100) - if pause and self.__settings__.getSetting("pause_onplay") == 'true': + if pause and (self.__settings__.getSetting("pause_onplay") == 'true') and (self.getTime() > 0): pause = False xbmc.Player().pause() xbmc.sleep(1000)