From 83cd0280ed49e2b09b073bb16b59ea4bf554218e Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Thu, 18 Nov 2021 11:09:40 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20Segna=20come=20gi=C3=A0=20visto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformcode/xbmc_videolibrary.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformcode/xbmc_videolibrary.py b/platformcode/xbmc_videolibrary.py index 23345dbc..21776e75 100644 --- a/platformcode/xbmc_videolibrary.py +++ b/platformcode/xbmc_videolibrary.py @@ -34,6 +34,7 @@ def mark_auto_as_watched(item): sync = False next_episode = None show_server = True + mark_time = 0 percentage = float(config.get_setting("watched_setting")) / 100 time_from_end = config.get_setting('next_ep_seconds') @@ -85,7 +86,7 @@ def mark_auto_as_watched(item): break # if item.options['continue']: - if actual_time < mark_time: + if actual_time < mark_time and mark_time: item.played_time = actual_time else: item.played_time = 0 platformtools.set_played_time(item)