Playback Monitor as a service,
Global search fix other minimal fix
This commit is contained in:
@@ -283,6 +283,12 @@ class Item(object):
|
||||
def __str__(self):
|
||||
return '\r\t' + self.tostring('\r\t')
|
||||
|
||||
def __eq__(self, other):
|
||||
if type(other) == Item:
|
||||
return self.__dict__ == other.__dict__
|
||||
else:
|
||||
return False
|
||||
|
||||
def set_parent_content(self, parentContent):
|
||||
"""
|
||||
Fill the contentDetails fields with the information of the item "parent"
|
||||
|
||||
+2
-2
@@ -1882,9 +1882,9 @@ def get_jwplayer_mediaUrl(data, srvName, onlyHttp=False, dataIsBlock=False):
|
||||
def itemlistdb(itemlist=None):
|
||||
from core import db
|
||||
if itemlist:
|
||||
db['itemlist']['itemlist'] = itemlist
|
||||
db['control']['itemlist'] = itemlist
|
||||
else:
|
||||
itemlist = db['itemlist'].get('itemlist',[])
|
||||
itemlist = db['control'].get('itemlist',[])
|
||||
db.close()
|
||||
return itemlist
|
||||
|
||||
|
||||
Reference in New Issue
Block a user