Miglioria del precedente commit

This commit is contained in:
mac12m99
2021-11-02 19:58:01 +01:00
parent 9828908bfe
commit ebbf37222e
7 changed files with 25 additions and 18 deletions

View File

@@ -41,7 +41,7 @@ def start(itemlist, item):
import xbmc
control_item = Item().fromurl(xbmc.getInfoLabel('Container.FolderPath'))
if control_item.url == item.url:
if control_item == item:
return itemlist
if config.get_setting('autoplay') or item.autoplay:

View File

@@ -283,6 +283,9 @@ class Item(object):
def __str__(self):
return '\r\t' + self.tostring('\r\t')
def __eq__(self, other):
return self.__dict__ == other.__dict__
def set_parent_content(self, parentContent):
"""
Fill the contentDetails fields with the information of the item "parent"