From 9d81c2e4b63578b4da81dbef8cfb3db2c2855d09 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Sat, 30 Oct 2021 12:36:09 +0200 Subject: [PATCH] Fix Autoplay per Torrent --- core/autoplay.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/autoplay.py b/core/autoplay.py index c0f7e383..b968abe1 100644 --- a/core/autoplay.py +++ b/core/autoplay.py @@ -39,6 +39,12 @@ def start(itemlist, item): if not config.is_xbmc(): return itemlist + import xbmc + xbmc.sleep(100) + control_item = Item().fromurl(xbmc.getInfoLabel('ListItem.FileNameAndPath')) + if control_item.action == 'play': + return itemlist + if config.get_setting('autoplay') or item.autoplay: # Save the current value of "Action and Player Mode" in preferences user_config_setting_action = config.get_setting("default_action")