From 3ca7707c01971e68c8d079d48de54a5913d6d25c Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Fri, 1 Oct 2021 14:55:21 +0200 Subject: [PATCH] Fix Gestione Viste --- platformcode/platformtools.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platformcode/platformtools.py b/platformcode/platformtools.py index d2b385d6..87c59e28 100644 --- a/platformcode/platformtools.py +++ b/platformcode/platformtools.py @@ -378,7 +378,11 @@ def render_items(itemlist, parent_item): set_view_mode(itemlist[0], parent_item) - xbmcplugin.endOfDirectory(_handle, succeeded=True, updateListing=False, cacheToDisc=False) + cacheToDisc = False + if (parent_item.action == 'findvideos' and config.get_setting('autoplay')) or parent_item.action == 'search': + cacheToDisc = True + + xbmcplugin.endOfDirectory(_handle, succeeded=True, updateListing=False, cacheToDisc=cacheToDisc) logger.debug('END render_items')