Miglioria del precedente commit
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user