From 5923da3325618b7963cc1d38343b0aa859bc1037 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Wed, 23 Feb 2022 16:50:14 +0100 Subject: [PATCH] Fix riapertura finestra server in caso di video brevi --- platformcode/xbmc_videolibrary.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platformcode/xbmc_videolibrary.py b/platformcode/xbmc_videolibrary.py index ca43bfad..a13cf63b 100644 --- a/platformcode/xbmc_videolibrary.py +++ b/platformcode/xbmc_videolibrary.py @@ -85,7 +85,10 @@ def mark_auto_as_watched(item): if marked: logger.debug('CLOSE') item.played_time = 0 - db['controls']['reopen'] = False + if total_time > 20: + db['controls']['reopen'] = False + else: + db['controls']['reopen'] = True else: logger.debug('REOPEN') item.played_time = actual_time @@ -110,7 +113,7 @@ def mark_auto_as_watched(item): def sync_trakt_addon(path_folder): """ - Updates the values ​​of episodes seen if + Updates the values of episodes seen if """ logger.debug() # if the addon exists we do the search