Autoplay: non ri-eseguire in caso di refresh

This commit is contained in:
mac12m99
2021-10-30 13:20:34 +02:00
parent 9d81c2e4b6
commit 925a696a17
+2 -3
View File
@@ -40,9 +40,8 @@ def start(itemlist, item):
return itemlist return itemlist
import xbmc import xbmc
xbmc.sleep(100) control_item = Item().fromurl(xbmc.getInfoLabel('Container.FolderPath'))
control_item = Item().fromurl(xbmc.getInfoLabel('ListItem.FileNameAndPath')) if control_item.url == item.url:
if control_item.action == 'play':
return itemlist return itemlist
if config.get_setting('autoplay') or item.autoplay: if config.get_setting('autoplay') or item.autoplay: