Fix Autoplay per Torrent

This commit is contained in:
Alhaziel01
2021-10-30 12:36:09 +02:00
parent 4610ba71af
commit 9d81c2e4b6

View File

@@ -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")