From 925a696a17f425f19f2b8b4b9cb290a0214a6e90 Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Sat, 30 Oct 2021 13:20:34 +0200 Subject: [PATCH] Autoplay: non ri-eseguire in caso di refresh --- core/autoplay.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/autoplay.py b/core/autoplay.py index b968abe1..e03d28a0 100644 --- a/core/autoplay.py +++ b/core/autoplay.py @@ -40,9 +40,8 @@ def start(itemlist, item): return itemlist import xbmc - xbmc.sleep(100) - control_item = Item().fromurl(xbmc.getInfoLabel('ListItem.FileNameAndPath')) - if control_item.action == 'play': + control_item = Item().fromurl(xbmc.getInfoLabel('Container.FolderPath')) + if control_item.url == item.url: return itemlist if config.get_setting('autoplay') or item.autoplay: